1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.63"
15name = "rustix"
16version = "0.38.31"
17authors = [
18    "Dan Gohman <dev@sunfishcode.online>",
19    "Jakub Konka <kubkon@jakubkonka.com>",
20]
21include = [
22    "src",
23    "build.rs",
24    "Cargo.toml",
25    "COPYRIGHT",
26    "LICENSE*",
27    "/*.md",
28    "benches",
29]
30description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls"
31documentation = "https://docs.rs/rustix"
32readme = "README.md"
33keywords = [
34    "api",
35    "file",
36    "network",
37    "safe",
38    "syscall",
39]
40categories = [
41    "os::unix-apis",
42    "date-and-time",
43    "filesystem",
44    "network-programming",
45]
46license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
47repository = "https://github.com/bytecodealliance/rustix"
48
49[package.metadata.docs.rs]
50features = ["all-apis"]
51rustdoc-args = [
52    "--cfg",
53    "doc_cfg",
54]
55targets = [
56    "x86_64-unknown-linux-gnu",
57    "i686-unknown-linux-gnu",
58    "x86_64-apple-darwin",
59    "x86_64-pc-windows-msvc",
60    "x86_64-unknown-freebsd",
61    "x86_64-unknown-openbsd",
62    "x86_64-unknown-netbsd",
63    "x86_64-unknown-dragonfly",
64    "x86_64-unknown-illumos",
65    "x86_64-unknown-redox",
66    "x86_64-unknown-haiku",
67    "wasm32-unknown-emscripten",
68    "wasm32-wasi",
69]
70
71[[bench]]
72name = "mod"
73harness = false
74
75[dependencies.alloc]
76version = "1.0.0"
77optional = true
78package = "rustc-std-workspace-alloc"
79
80[dependencies.bitflags]
81version = "2.4.0"
82default-features = false
83
84[dependencies.compiler_builtins]
85version = "0.1.49"
86optional = true
87
88[dependencies.core]
89version = "1.0.0"
90optional = true
91package = "rustc-std-workspace-core"
92
93[dependencies.itoa]
94version = "1.0.1"
95optional = true
96default-features = false
97
98[dev-dependencies.flate2]
99version = "1.0"
100
101[dev-dependencies.libc]
102version = "0.2.152"
103
104[dev-dependencies.libc_errno]
105version = "0.3.8"
106default-features = false
107package = "errno"
108
109[dev-dependencies.memoffset]
110version = "0.9.0"
111
112[dev-dependencies.serial_test]
113version = "2.0.0"
114
115[dev-dependencies.static_assertions]
116version = "1.1.0"
117
118[dev-dependencies.tempfile]
119version = "3.5.0"
120
121[features]
122all-apis = [
123    "event",
124    "fs",
125    "io_uring",
126    "mm",
127    "mount",
128    "net",
129    "param",
130    "pipe",
131    "process",
132    "procfs",
133    "pty",
134    "rand",
135    "runtime",
136    "shm",
137    "stdio",
138    "system",
139    "termios",
140    "thread",
141    "time",
142]
143alloc = []
144cc = []
145default = [
146    "std",
147    "use-libc-auxv",
148]
149event = []
150fs = []
151io_uring = [
152    "event",
153    "fs",
154    "net",
155    "linux-raw-sys/io_uring",
156]
157linux_4_11 = []
158linux_latest = ["linux_4_11"]
159mm = []
160mount = []
161net = [
162    "linux-raw-sys/net",
163    "linux-raw-sys/netlink",
164    "linux-raw-sys/if_ether",
165    "linux-raw-sys/xdp",
166]
167param = ["fs"]
168pipe = []
169process = ["linux-raw-sys/prctl"]
170procfs = [
171    "once_cell",
172    "itoa",
173    "fs",
174]
175pty = [
176    "itoa",
177    "fs",
178]
179rand = []
180runtime = ["linux-raw-sys/prctl"]
181rustc-dep-of-std = [
182    "dep:core",
183    "dep:alloc",
184    "dep:compiler_builtins",
185    "linux-raw-sys/rustc-dep-of-std",
186    "bitflags/rustc-dep-of-std",
187    "compiler_builtins?/rustc-dep-of-std",
188]
189shm = ["fs"]
190std = [
191    "bitflags/std",
192    "alloc",
193    "libc?/std",
194    "libc_errno?/std",
195]
196stdio = []
197system = ["linux-raw-sys/system"]
198termios = []
199thread = ["linux-raw-sys/prctl"]
200time = []
201use-explicitly-provided-auxv = []
202use-libc = [
203    "libc_errno",
204    "libc",
205]
206use-libc-auxv = []
207
208[target."cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.linux-raw-sys]
209version = "0.4.12"
210features = [
211    "general",
212    "ioctl",
213    "no_std",
214]
215default-features = false
216optional = true
217
218[target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion]
219version = "0.4"
220
221[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.libc]
222version = "0.2.152"
223features = ["extra_traits"]
224optional = true
225default-features = false
226
227[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.libc_errno]
228version = "0.3.8"
229optional = true
230default-features = false
231package = "errno"
232
233[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.linux-raw-sys]
234version = "0.4.12"
235features = [
236    "general",
237    "errno",
238    "ioctl",
239    "no_std",
240    "elf",
241]
242default-features = false
243optional = true
244
245[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.libc]
246version = "0.2.152"
247features = ["extra_traits"]
248default-features = false
249
250[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.libc_errno]
251version = "0.3.8"
252default-features = false
253package = "errno"
254
255[target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell]
256version = "1.5.2"
257optional = true
258
259[target."cfg(windows)".dependencies.libc_errno]
260version = "0.3.8"
261default-features = false
262package = "errno"
263
264[target."cfg(windows)".dependencies.windows-sys]
265version = "0.52.0"
266features = [
267    "Win32_Foundation",
268    "Win32_Networking_WinSock",
269    "Win32_NetworkManagement_IpHelper",
270    "Win32_System_Threading",
271]
272
273[target."cfg(windows)".dev-dependencies.ctor]
274version = "0.2.0"
275