Skip to content

Commit 31286b3

Browse files
Nullislander0nullislanderclaude
authored
fix: make nix dependency Unix-only for Windows compilation (#68)
The nix crate is Unix-only and was listed as an unconditional dependency in the cli Cargo.toml, preventing compilation on Windows. The actual usage in main.rs is already gated behind #[cfg(unix)], so this just moves the dep to [target.'cfg(unix)'.dependencies] to match. Co-authored-by: nullislander <nullislander@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 97a7316 commit 31286b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src-rust/crates/cli/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ url = { workspace = true }
3838
crossterm = { workspace = true }
3939
parking_lot = { workspace = true }
4040
dirs = { workspace = true }
41-
nix = { workspace = true }
4241
base64 = "0.22"
4342
sha2 = "0.10"
4443
open = "5"
4544
urlencoding = "2"
4645
xxhash-rust = { version = "0.8", features = ["xxh64"] }
4746

47+
[target.'cfg(unix)'.dependencies]
48+
nix = { workspace = true }
49+
4850
[build-dependencies]
4951
chrono = { workspace = true }

0 commit comments

Comments
 (0)