1[package] 2name = "nix" 3description = "Rust friendly bindings to *nix APIs" 4edition = "2021" 5version = "0.28.0" 6rust-version = "1.69" 7authors = ["The nix-rust Project Developers"] 8repository = "https://github.com/nix-rust/nix" 9license = "MIT" 10categories = ["os::unix-apis"] 11include = ["build.rs", "src/**/*", "test/**/*", "LICENSE", "README.md", "CHANGELOG.md"] 12 13[package.metadata.docs.rs] 14all-features = true 15rustdoc-args = ["--cfg", "docsrs"] 16targets = [ 17 "x86_64-unknown-linux-gnu", 18 "aarch64-linux-android", 19 "x86_64-apple-darwin", 20 "aarch64-apple-ios", 21 "x86_64-unknown-freebsd", 22 "x86_64-unknown-openbsd", 23 "x86_64-unknown-netbsd", 24 "x86_64-unknown-dragonfly", 25 "x86_64-fuchsia", 26 "x86_64-unknown-redox", 27 "x86_64-unknown-illumos" 28] 29 30[dependencies] 31libc = { version = "0.2.153", features = ["extra_traits"] } 32bitflags = "2.3.1" 33cfg-if = "1.0" 34pin-utils = { version = "0.1.0", optional = true } 35memoffset = { version = "0.9", optional = true } 36 37[features] 38default = [] 39 40acct = [] 41aio = ["pin-utils"] 42dir = ["fs"] 43env = [] 44event = [] 45fanotify = [] 46feature = [] 47fs = [] 48hostname = [] 49inotify = [] 50ioctl = [] 51kmod = [] 52mman = [] 53mount = ["uio"] 54mqueue = ["fs"] 55net = ["socket"] 56personality = [] 57poll = [] 58pthread = [] 59ptrace = ["process"] 60quota = [] 61process = [] 62reboot = [] 63resource = [] 64sched = ["process"] 65signal = ["process"] 66socket = ["memoffset"] 67term = [] 68time = [] 69ucontext = ["signal"] 70uio = [] 71user = ["feature"] 72zerocopy = ["fs", "uio"] 73 74[dev-dependencies] 75assert-impl = "0.1" 76parking_lot = "0.12" 77rand = "0.8" 78tempfile = "3.7.1" 79semver = "1.0.7" 80 81[target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies] 82caps = "0.5.3" 83 84[target.'cfg(target_os = "freebsd")'.dev-dependencies] 85sysctl = "0.4" 86 87[build-dependencies] 88cfg_aliases = "0.1.1" 89 90[[test]] 91name = "test" 92path = "test/test.rs" 93 94[[test]] 95name = "test-aio-drop" 96path = "test/sys/test_aio_drop.rs" 97 98[[test]] 99name = "test-clearenv" 100path = "test/test_clearenv.rs" 101 102[[test]] 103name = "test-prctl" 104path = "test/sys/test_prctl.rs" 105