Cargo Features

Nix has no features set by default.

[dependencies]
nix = { version = "0.30.1", features = ["acct", "aio", "dir", "env", "event", "fanotify", "feature", "fs", "inotify", "ioctl", "mman", "mount", "mqueue", "net", "personality", "poll", "pthread", "ptrace", "quota", "process", "resource", "sched", "signal", "socket", "time", "ucontext", "uio", "user", "zerocopy"] }
acct
aio = pin-utils
dir = fs
env
event = poll
fanotify
feature user?
fs dir? mqueue? zerocopy?

Affects fcntl::fallocate

hostname inotify
ioctl

Affects sys::ioctl

kmod mman
mount = uio
mqueue = fs
net = socket

Affects addr::SockaddrIn, addr::SockaddrIn6, sockopt::GetU8

personality
poll event?
pthread
ptrace = process
quota
process ptrace? sched? signal?

Affects time::clock_getcpuclockid

reboot resource
sched = process
signal ucontext? = process
socket net? = memoffset
syslog term time
ucontext = signal
uio mount? zerocopy?
user = feature
zerocopy = fs, uio

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

pin-utils aio?
memoffset socket?