Crate features / linux-raw-sys
Feature flags · linux-raw-sys 0.12.1 · from crates.io 2026-10-24
linux-raw-sys features: what each one does, and the line to copy
Short answerlinux-raw-sys 0.12.1 has 27 features. By default it turns on std, general, errno; add default-features = false to start from nothing. It needs Rust 1.63 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
auxvec | nothing else (a switch the code checks) | |
bootparam | nothing else (a switch the code checks) | |
btrfs | nothing else (a switch the code checks) | |
elf | nothing else (a switch the code checks) | |
elf_uapi | nothing else (a switch the code checks) | |
errno | yes | nothing else (a switch the code checks) |
general | yes | nothing else (a switch the code checks) |
if_arp | nothing else (a switch the code checks) | |
if_ether | nothing else (a switch the code checks) | |
if_packet | nothing else (a switch the code checks) | |
if_tun | nothing else (a switch the code checks) | |
image | nothing else (a switch the code checks) | |
io_uring | nothing else (a switch the code checks) | |
ioctl | nothing else (a switch the code checks) | |
landlock | nothing else (a switch the code checks) | |
loop_device | nothing else (a switch the code checks) | |
mempolicy | nothing else (a switch the code checks) | |
net | nothing else (a switch the code checks) | |
netlink | nothing else (a switch the code checks) | |
no_std | nothing else (a switch the code checks) | |
prctl | nothing else (a switch the code checks) | |
ptrace | nothing else (a switch the code checks) | |
rustc-dep-of-std | core, no_std | |
std | yes | nothing else (a switch the code checks) |
system | nothing else (a switch the code checks) | |
vm_sockets | nothing else (a switch the code checks) | |
xdp | 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 linux-raw-sys declares (rust-version), and the release that changed it:
- 0.1.4 (2022-12-13): Rust 1.48
- 0.4.0-pre.0 (2023-05-24): Rust 1.63
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p linux-raw-sys --precise <version>, or use resolver 3, which picks compatible versions for you.
More on linux-raw-sys
Real downloads, dependents and alternatives: linux-raw-sys crate data (3.3M real downloads a day, 39 dependents).
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 itlinux-raw-sys crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?