1[package]
2name = "nix"
3description = "Rust friendly bindings to *nix APIs"
4edition = "2021"
5version = "0.27.1"
6rust-version = "1.65"
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]
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.147", 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 = []
45feature = []
46fs = []
47hostname = []
48inotify = []
49ioctl = []
50kmod = []
51mman = []
52mount = ["uio"]
53mqueue = ["fs"]
54net = ["socket"]
55personality = []
56poll = []
57pthread = []
58ptrace = ["process"]
59quota = []
60process = []
61reboot = []
62resource = []
63sched = ["process"]
64signal = ["process"]
65socket = ["memoffset"]
66term = []
67time = []
68ucontext = ["signal"]
69uio = []
70user = ["feature"]
71zerocopy = ["fs", "uio"]
72
73[dev-dependencies]
74assert-impl = "0.1"
75parking_lot = "0.12"
76rand = "0.8"
77tempfile = "3.7.1"
78semver = "1.0.7"
79
80[target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies]
81caps = "0.5.3"
82
83[target.'cfg(target_os = "freebsd")'.dev-dependencies]
84sysctl = "0.4"
85
86[[test]]
87name = "test"
88path = "test/test.rs"
89
90[[test]]
91name = "test-aio-drop"
92path = "test/sys/test_aio_drop.rs"
93
94[[test]]
95name = "test-clearenv"
96path = "test/test_clearenv.rs"
97
98[[test]]
99name = "test-mount"
100path = "test/test_mount.rs"
101harness = false
102
103[[test]]
104name = "test-prctl"
105path = "test/sys/test_prctl.rs"
106