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