• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.errno]
105version = "0.3.8"
106default-features = false
107
108[dev-dependencies.memoffset]
109version = "0.9.0"
110
111[dev-dependencies.serial_test]
112version = "2.0.0"
113
114[dev-dependencies.static_assertions]
115version = "1.1.0"
116
117[dev-dependencies.tempfile]
118version = "3.5.0"
119
120[features]
121all-apis = [
122    "event",
123    "fs",
124    "io_uring",
125    "mm",
126    "mount",
127    "net",
128    "param",
129    "pipe",
130    "process",
131    "procfs",
132    "pty",
133    "rand",
134    "runtime",
135    "shm",
136    "stdio",
137    "system",
138    "termios",
139    "thread",
140    "time",
141]
142alloc = []
143cc = []
144default = [
145    "std",
146    "use-libc-auxv",
147]
148event = []
149fs = []
150io_uring = [
151    "event",
152    "fs",
153    "net",
154    "linux-raw-sys/io_uring",
155]
156linux_4_11 = []
157linux_latest = ["linux_4_11"]
158mm = []
159mount = []
160net = [
161    "linux-raw-sys/net",
162    "linux-raw-sys/netlink",
163    "linux-raw-sys/if_ether",
164    "linux-raw-sys/xdp",
165]
166param = ["fs"]
167pipe = []
168process = ["linux-raw-sys/prctl"]
169procfs = [
170    "once_cell",
171    "itoa",
172    "fs",
173]
174pty = [
175    "itoa",
176    "fs",
177]
178rand = []
179runtime = ["linux-raw-sys/prctl"]
180rustc-dep-of-std = [
181    "dep:core",
182    "dep:alloc",
183    "dep:compiler_builtins",
184    "linux-raw-sys/rustc-dep-of-std",
185    "bitflags/rustc-dep-of-std",
186    "compiler_builtins?/rustc-dep-of-std",
187]
188shm = ["fs"]
189std = [
190    "bitflags/std",
191    "alloc",
192    "libc?/std",
193    "errno?/std",
194]
195stdio = []
196system = ["linux-raw-sys/system"]
197termios = []
198thread = ["linux-raw-sys/prctl"]
199time = []
200use-explicitly-provided-auxv = []
201use-libc = [
202    "errno",
203    "libc",
204]
205use-libc-auxv = []
206
207[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]
208version = "0.4.12"
209features = [
210    "general",
211    "ioctl",
212    "no_std",
213]
214default-features = false
215optional = true
216
217[target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion]
218version = "0.4"
219
220[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]
221version = "0.2.152"
222features = ["extra_traits"]
223optional = true
224default-features = false
225
226[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.errno]
227version = "0.3.8"
228optional = true
229default-features = false
230
231[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]
232version = "0.4.12"
233features = [
234    "general",
235    "errno",
236    "ioctl",
237    "no_std",
238    "elf",
239]
240default-features = false
241optional = true
242
243[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]
244version = "0.2.152"
245features = ["extra_traits"]
246default-features = false
247
248[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.errno]
249version = "0.3.8"
250default-features = false
251
252[target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell]
253version = "1.5.2"
254optional = true
255
256[target."cfg(windows)".dependencies.errno]
257version = "0.3.8"
258default-features = false
259
260[target."cfg(windows)".dependencies.windows-sys]
261version = "0.52.0"
262features = [
263    "Win32_Foundation",
264    "Win32_Networking_WinSock",
265    "Win32_NetworkManagement_IpHelper",
266    "Win32_System_Threading",
267]
268
269[target."cfg(windows)".dev-dependencies.ctor]
270version = "0.2.0"
271