feat: better error handling

This commit is contained in:
2026-01-18 19:56:51 +08:00
parent 208b996627
commit e310133421
29 changed files with 1375 additions and 486 deletions

View File

@@ -9,9 +9,13 @@ fn init() {
static INIT: Once = Once::new();
INIT.call_once(|| {
#[cfg(not(feature = "daemon"))]
unsafe { std::env::set_var("NIX_JS_STORE_MODE", "simulated") };
unsafe {
std::env::set_var("NIX_JS_STORE_MODE", "simulated")
};
#[cfg(feature = "daemon")]
unsafe { std::env::set_var("NIX_JS_STORE_MODE", "daemon") };
unsafe {
std::env::set_var("NIX_JS_STORE_MODE", "daemon")
};
});
}