Skip to content

Gate zombienet-sdk behind cfg(unix) to fix Windows builds#254

Merged
elle-j merged 5 commits intomainfrom
lj/fix-compilation-on-windows
Mar 19, 2026
Merged

Gate zombienet-sdk behind cfg(unix) to fix Windows builds#254
elle-j merged 5 commits intomainfrom
lj/fix-compilation-on-windows

Conversation

@elle-j
Copy link
Contributor

@elle-j elle-j commented Mar 13, 2026

Summary

The retester binary depends on revive-dt-node, which depends on zombienet-sdk. The zombienet-support crate uses std::os::unix, which fails to compile on Windows. Since zombienet only runs on unix systems, this PR cfg-gates the zombienet-sdk dependency and all zombienet-related code behind #[cfg(unix)].

The revive compiler repo needs to run compilation-only for Windows builds as well. See e.g. this failed run.

Alternatives

Feature-gating the entire revive-dt-node crate behind e.g. a nodes feature would allow a lightweight compile-only build, but is a bit more invasive than the above approach (and would probably still be good to combine with the above approach in order to make compilations on Windows just work out of the gate).

Temporarily adding this fix here until verified that CI is fixed in
revive compiler with this. The 'retester' binary depends on
'revive-dt-node', which depends on 'zombienet-sdk'. The
'zombienet-support' crate uses 'std::os::unix' unconditionally.
@elle-j elle-j requested a review from 0xOmarA March 13, 2026 17:06
@elle-j elle-j added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit 69f0497 Mar 19, 2026
8 checks passed
@elle-j elle-j deleted the lj/fix-compilation-on-windows branch March 19, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants