Crate features / nix
Feature flags · nix 0.31.3 · from crates.io 2026-10-24
nix features: what each one does, and the line to copy
Short answernix 0.31.3 has 34 features. Nothing is on by default: turn on what you use. It needs Rust 1.69 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
acct | nothing else (a switch the code checks) | |
aio | pin-utils | |
dir | fs | |
env | nothing else (a switch the code checks) | |
event | poll | |
fanotify | nothing else (a switch the code checks) | |
feature | nothing else (a switch the code checks) | |
fs | nothing else (a switch the code checks) | |
hostname | nothing else (a switch the code checks) | |
inotify | nothing else (a switch the code checks) | |
ioctl | nothing else (a switch the code checks) | |
kmod | nothing else (a switch the code checks) | |
mman | nothing else (a switch the code checks) | |
mount | uio | |
mqueue | fs | |
net | socket | |
personality | nothing else (a switch the code checks) | |
poll | nothing else (a switch the code checks) | |
process | nothing else (a switch the code checks) | |
pthread | nothing else (a switch the code checks) | |
ptrace | process | |
quota | nothing else (a switch the code checks) | |
reboot | nothing else (a switch the code checks) | |
resource | nothing else (a switch the code checks) | |
sched | process | |
signal | process | |
socket | memoffset | |
syslog | nothing else (a switch the code checks) | |
term | nothing else (a switch the code checks) | |
time | nothing else (a switch the code checks) | |
ucontext | signal | |
uio | nothing else (a switch the code checks) | |
user | feature | |
zerocopy | fs, uio |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version nix declares (rust-version), and the release that changed it:
- 0.23.1 (2021-12-17): Rust 1.46
- 0.22.3 (2022-01-23): no rust-version declared
- 0.24.0 (2022-04-21): Rust 1.46
- 0.26.0 (2022-11-29): Rust 1.56
- 0.25.1 (2022-12-02): Rust 1.46
- 0.26.2 (2023-01-18): Rust 1.56
- 0.27.0 (2023-08-28): Rust 1.65
- 0.26.4 (2023-08-28): Rust 1.56
- 0.28.0 (2024-02-24): Rust 1.69
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p nix --precise <version>, or use resolver 3, which picks compatible versions for you.
More on nix
Real downloads, dependents and alternatives: nix crate data (2.4M real downloads a day, 3,910 dependents).
Security record: nix advisories.
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on itnix crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?