feat: use snix nix-compat; implement metadata cache

This commit is contained in:
2026-01-18 11:52:47 +08:00
parent 611255d42c
commit 2441e10607
9 changed files with 1346 additions and 589 deletions

View File

@@ -6,13 +6,13 @@ build = "build.rs"
[features]
default = ["daemon"]
daemon = ["dep:tokio", "dep:nix-daemon"]
daemon = ["dep:tokio", "dep:nix-compat"]
[dependencies]
mimalloc = "0.1"
tokio = { version = "1.41", features = ["rt-multi-thread", "sync"], optional = true }
nix-daemon = { version = "0.1", optional = true }
tokio = { version = "1.41", features = ["rt-multi-thread", "sync", "net", "io-util"], optional = true }
nix-compat = { git = "https://git.snix.dev/snix/snix.git", version = "0.1.0", features = ["wire", "async"], optional = true }
# REPL
anyhow = "1.0"
@@ -51,6 +51,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
dirs = "5.0"
tempfile = "3.24"
rusqlite = { version = "0.33", features = ["bundled"] }
rnix = "0.12"