no bug - Correct some typos in the comments. a=typo-fix
[gecko.git] / third_party / rust / rustix / Cargo.toml
blob626847308e4feced2f866ebd443d90690f4d77ee
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
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.
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.
12 [package]
13 edition = "2021"
14 rust-version = "1.63"
15 name = "rustix"
16 version = "0.38.28"
17 authors = [
18     "Dan Gohman <dev@sunfishcode.online>",
19     "Jakub Konka <kubkon@jakubkonka.com>",
21 include = [
22     "src",
23     "build.rs",
24     "Cargo.toml",
25     "COPYRIGHT",
26     "LICENSE*",
27     "/*.md",
28     "benches",
30 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls"
31 documentation = "https://docs.rs/rustix"
32 readme = "README.md"
33 keywords = [
34     "api",
35     "file",
36     "network",
37     "safe",
38     "syscall",
40 categories = [
41     "os::unix-apis",
42     "date-and-time",
43     "filesystem",
44     "network-programming",
46 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
47 repository = "https://github.com/bytecodealliance/rustix"
49 [package.metadata.docs.rs]
50 features = ["all-apis"]
51 rustdoc-args = [
52     "--cfg",
53     "doc_cfg",
55 targets = [
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",
71 [[bench]]
72 name = "mod"
73 harness = false
75 [dependencies.alloc]
76 version = "1.0.0"
77 optional = true
78 package = "rustc-std-workspace-alloc"
80 [dependencies.bitflags]
81 version = "2.4.0"
82 default-features = false
84 [dependencies.compiler_builtins]
85 version = "0.1.49"
86 optional = true
88 [dependencies.core]
89 version = "1.0.0"
90 optional = true
91 package = "rustc-std-workspace-core"
93 [dependencies.itoa]
94 version = "1.0.1"
95 optional = true
96 default-features = false
98 [dev-dependencies.flate2]
99 version = "1.0"
101 [dev-dependencies.libc]
102 version = "0.2.150"
104 [dev-dependencies.libc_errno]
105 version = "0.3.8"
106 default-features = false
107 package = "errno"
109 [dev-dependencies.memoffset]
110 version = "0.9.0"
112 [dev-dependencies.serial_test]
113 version = "2.0.0"
115 [dev-dependencies.static_assertions]
116 version = "1.1.0"
118 [dev-dependencies.tempfile]
119 version = "3.5.0"
121 [features]
122 all-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",
143 alloc = []
144 cc = []
145 default = [
146     "std",
147     "use-libc-auxv",
149 event = []
150 fs = []
151 io_uring = [
152     "event",
153     "fs",
154     "net",
155     "linux-raw-sys/io_uring",
157 linux_4_11 = []
158 linux_latest = ["linux_4_11"]
159 mm = []
160 mount = []
161 net = [
162     "linux-raw-sys/net",
163     "linux-raw-sys/netlink",
164     "linux-raw-sys/if_ether",
166 param = ["fs"]
167 pipe = []
168 process = ["linux-raw-sys/prctl"]
169 procfs = [
170     "once_cell",
171     "itoa",
172     "fs",
174 pty = [
175     "itoa",
176     "fs",
178 rand = []
179 runtime = ["linux-raw-sys/prctl"]
180 rustc-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",
188 shm = ["fs"]
189 std = [
190     "bitflags/std",
191     "alloc",
192     "libc?/std",
193     "libc_errno?/std",
195 stdio = []
196 system = ["linux-raw-sys/system"]
197 termios = []
198 thread = ["linux-raw-sys/prctl"]
199 time = []
200 use-explicitly-provided-auxv = []
201 use-libc = [
202     "libc_errno",
203     "libc",
205 use-libc-auxv = []
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]
208 version = "0.4.11"
209 features = [
210     "general",
211     "ioctl",
212     "no_std",
214 default-features = false
216 [target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion]
217 version = "0.4"
219 [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]
220 version = "0.2.150"
221 features = ["extra_traits"]
222 optional = true
223 default-features = false
225 [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]
226 version = "0.3.8"
227 optional = true
228 default-features = false
229 package = "errno"
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]
232 version = "0.4.11"
233 features = [
234     "general",
235     "errno",
236     "ioctl",
237     "no_std",
238     "elf",
240 default-features = false
242 [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]
243 version = "0.2.150"
244 features = ["extra_traits"]
245 default-features = false
247 [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]
248 version = "0.3.8"
249 default-features = false
250 package = "errno"
252 [target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell]
253 version = "1.5.2"
254 optional = true
256 [target."cfg(windows)".dependencies.libc_errno]
257 version = "0.3.8"
258 default-features = false
259 package = "errno"
261 [target."cfg(windows)".dependencies.windows-sys]
262 version = "0.52.0"
263 features = [
264     "Win32_Foundation",
265     "Win32_Networking_WinSock",
266     "Win32_NetworkManagement_IpHelper",
267     "Win32_System_Threading",
270 [target."cfg(windows)".dev-dependencies.ctor]
271 version = "0.2.0"