aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authordivens <divens@users.noreply.github.com>2026-02-23 16:40:51 +0100
committerGitHub <noreply@github.com>2026-02-23 16:40:51 +0100
commitc80786f4ff54d2df7cb826f4cb9ed766e8f42bf4 (patch)
tree0f6bbcbc0cf572175b73a193443f1ba24b70019e /Cargo.toml
parentdocs(changelog): preserve cwd for editor panes (diff)
downloadsl0ppij-c80786f4ff54d2df7cb826f4cb9ed766e8f42bf4.tar.gz
sl0ppij-c80786f4ff54d2df7cb826f4cb9ed766e8f42bf4.tar.xz
sl0ppij-c80786f4ff54d2df7cb826f4cb9ed766e8f42bf4.zip
[Windows port PR7] refactor: upgrade sysinfo and add cross-compilation proof (#4759)
* refactor: platform-abstract path constants Add #[cfg(not(unix))] counterpart to unix_only module in consts.rs so path constants compile on non-Unix platforms. Move nix dependency to cfg(unix)-only in both zellij-utils and root crate. * refactor: Windows cross-compilation proof Enable all 5 core crates to compile for x86_64-pc-windows-gnu by fixing dependency issues and upgrading sysinfo. This validates that PRs 1.1–7.1 correctly gated all Unix-specific code behind cfg attributes. - Enable crossterm "windows" feature in workspace deps (no-op on non-Windows) - Remove dead mio dependency from zellij-client (zero imports) - Add Windows cross-compilation linker config to .cargo/config.toml - Upgrade sysinfo 0.22.5 → 0.33 (drops ntapi v0.3.7 packed struct UB) - Remove deprecated ProcessExt/SystemExt trait imports - Pid::from(i32) → Pid::from_u32(u32) - process.cwd() now returns Option<&Path> - process.cmd() now returns &[OsString] - Use precise ProcessRefreshKind (nothing + with_cwd/with_cmd) --------- Co-authored-by: divens <divens.dev@gmail.com>
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml6
1 files changed, 4 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f0210685..80972838 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,11 +25,13 @@ interprocess = { workspace = true }
log = { workspace = true }
miette = { workspace = true }
names = { workspace = true }
-nix = { workspace = true }
suggest = { workspace = true }
thiserror = { workspace = true }
isahc = { workspace = true }
+[target.'cfg(unix)'.dependencies]
+nix = { workspace = true }
+
[dev-dependencies]
insta = { version = "1.6.0", features = ["backtrace"] }
ssh2 = "0.9.1"
@@ -74,7 +76,7 @@ ansi_term = { version = "0.12.1", default-features = false }
anyhow = { version = "1.0.70", default-features = false, features = ["backtrace", "std"] }
async-trait = { version = "0.1", default-features = false }
clap = { version = "3.2.2", default-features = false, features = ["env", "derive", "color", "std", "suggestions"] }
-crossterm = { version = "0.28", default-features = false }
+crossterm = { version = "0.28", default-features = false, features = ["windows"] }
daemonize = { version = "0.5", default-features = false }
dialoguer = { version = "0.10.4", default-features = false, features = ["password", "completion"] }
humantime = { version = "2.1.0", default-features = false }