git.delta.rocks / jrsonnet / refs/commits / 45f5af0fdfba

difftreelog

fix native-eval stub

Yaroslav Bolyukin2024-11-14parent: #064468b.patch.diff
in: trunk

2 files changed

modifiedcrates/nix-native-eval/Cargo.tomldiffbeforeafterboth
--- a/crates/nix-native-eval/Cargo.toml
+++ b/crates/nix-native-eval/Cargo.toml
@@ -4,4 +4,5 @@
 version.workspace = true
 
 [dependencies]
+anyhow.workspace = true
 nixrs = { git = "https://github.com/Anillc/nixrs", version = "0.1.0" }
modifiedcrates/nix-native-eval/src/lib.rsdiffbeforeafterboth
1use anyhow::Result;
1use nixrs::{State, Store};2use nixrs::{State, Store};
23
3fn init() {4pub fn init() -> Result<()> {
4 nixrs::init();5 nixrs::init()?;
5 let store = Store::new("daemon")?;6 let store = Store::new("daemon")?;
6 let state = State::new(store)7 let state = State::new(store)?;
8 let _ = state;
9
10 Ok(())
7}11}
812