Crate features / rustix
Feature flags · rustix 1.1.5 · from crates.io 2026-10-24
rustix features: what each one does, and the line to copy
Short answerrustix 1.1.5 has 30 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.65 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
all-apis | event, fs, io_uring, mm, mount, net, param, pipe, process, pty, rand, runtime, shm, stdio, system, termios, thread, time | |
alloc | nothing else (a switch the code checks) | |
event | nothing else (a switch the code checks) | |
fs | nothing else (a switch the code checks) | |
io_uring | event, fs, net, thread, linux-raw-sys/io_uring | |
linux_4_11 | nothing else (a switch the code checks) | |
linux_5_1 | linux_4_11 | |
linux_5_11 | linux_5_1 | |
linux_latest | linux_5_11 | |
mm | nothing else (a switch the code checks) | |
mount | nothing else (a switch the code checks) | |
net | linux-raw-sys/net, linux-raw-sys/netlink, linux-raw-sys/if_ether, linux-raw-sys/xdp | |
param | nothing else (a switch the code checks) | |
pipe | nothing else (a switch the code checks) | |
process | linux-raw-sys/prctl | |
pty | fs | |
rand | nothing else (a switch the code checks) | |
runtime | linux-raw-sys/prctl | |
rustc-dep-of-std | core, rustc-std-workspace-alloc, linux-raw-sys/rustc-dep-of-std, bitflags/rustc-dep-of-std | |
shm | fs | |
std | yes | bitflags/std, alloc, libc?/std, libc_errno?/std |
stdio | nothing else (a switch the code checks) | |
system | linux-raw-sys/system | |
termios | nothing else (a switch the code checks) | |
thread | linux-raw-sys/prctl | |
time | nothing else (a switch the code checks) | |
try_close | nothing else (a switch the code checks) | |
use-explicitly-provided-auxv | nothing else (a switch the code checks) | |
use-libc | libc_errno, libc | |
use-libc-auxv | nothing else (a switch the code checks) |
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 rustix declares (rust-version), and the release that changed it:
- 0.37.24 (2023-09-29): Rust 1.48
- 0.38.15 (2023-09-29): Rust 1.63
- 0.37.25 (2023-10-12): Rust 1.48
- 0.35.15 (2023-10-12): no rust-version declared
- 0.37.26 (2023-10-19): Rust 1.48
- 0.38.20 (2023-10-19): Rust 1.63
- 0.37.27 (2023-10-26): Rust 1.48
- 0.35.16 (2023-10-26): no rust-version declared
- 0.38.23 (2023-11-14): Rust 1.63
- 0.37.28 (2025-01-07): Rust 1.48
- 0.38.44 (2025-01-21): Rust 1.63
- 1.1.5 (2026-09-16): Rust 1.65
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p rustix --precise <version>, or use resolver 3, which picks compatible versions for you.
More on rustix
Real downloads, dependents and alternatives: rustix crate data (3.4M real downloads a day, 1,684 dependents).
Security record: rustix advisories.
docs.rs feature list · crates.io · license Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT · edition 2021
Up next
Before you depend on itrustix crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?