You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Both nix and rustix used in the dependency chain #9549
I was looking into the different dependency chains more specifically in the stty package but also in the shared libraries and it was interesting to me how we have rustix in the dependency tree for every utility through the clap dependency. Given that both of these libraries should have the same functionality was wondering if it would be useful to move some of the nix usage over to rustix for the windows support.
I've also attached an example full build profile for stty that has the two PR's applied to show the speed improvements and the critical build paths:
I've been experimenting with it and I think it actually would solve the issue, I had a script to replicate the error in docker just confirming that it works now
It’s unlikely that nix can be removed from the dependency chain. For example, we rely on sigaction across all utilities, and this functionality is intentionally not implemented in rustix (see: bytecodealliance/rustix#628).
Activity
sylvestre commentedon Dec 3, 2025
Yeah, we might want to use only one. Thanks
oech3 commentedon Dec 3, 2025
I can't find list of BaudRates at rustix's src.Maybe, auto closes #8719 too?ChrisDryden commentedon Dec 3, 2025
I've been experimenting with it and I think it actually would solve the issue, I had a script to replicate the error in docker just confirming that it works now
oech3 commentedon Mar 2, 2026
Can we still pass GNU tests depending on
LD_PRELOADafter we replacedlibcornixcalls withrustixfor the caserustixuses syscall directly?mattsu2020 commentedon Mar 5, 2026
I think using Rustix is difficult.
We have no choice but to use them selectively.
oech3 commentedon Mar 25, 2026
rustix has libc backend, but I guess we cannot mix raw and libc backend for perf.
I would try to change GnuTests at upstream if LD_PRELOAD is needed.
oech3 commentedon Apr 11, 2026
10 utils with
nixdep left.xtqqczze commentedon Apr 17, 2026
It’s unlikely that
nixcan be removed from the dependency chain. For example, we rely onsigactionacross all utilities, and this functionality is intentionally not implemented inrustix(see: bytecodealliance/rustix#628).oech3 commentedon Apr 17, 2026
Can we keep num of unsafe{} if we used
libcat there?xtqqczze commentedon Apr 17, 2026
What would be the benefit over using
nixwith thesignalfeature?oech3 commentedon Apr 17, 2026
We don't need to complie nix if it was completely removed. But it is very far.
xtqqczze commentedon Apr 17, 2026
Rust will only compile crates features that are enabled, so I think continuing to use the
signalfeature would be fine.oech3 commentedon May 16, 2026
How to support Windows?