aboutsummaryrefslogtreecommitdiffstats
path: root/.cargo
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
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')
-rw-r--r--.cargo/config.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 9b113f5d..f2455d45 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -5,3 +5,6 @@ xtask = "run --package xtask --"
x = "xtask"
q = "x run --quick-run"
make = "xtask deprecated"
+
+[target.x86_64-pc-windows-gnu]
+linker = "x86_64-w64-mingw32-gcc"