]> git.proxmox.com Git - rustc.git/blob - vendor/rustix/Cargo.toml
ed3e5b6234354de889129504e91a2d3021b67c9a
[rustc.git] / vendor / rustix / Cargo.toml
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]
13 edition = "2018"
14 rust-version = "1.48"
15 name = "rustix"
16 version = "0.36.5"
17 authors = [
18 "Dan Gohman <dev@sunfishcode.online>",
19 "Jakub Konka <kubkon@jakubkonka.com>",
20 ]
21 include = [
22 "src",
23 "build.rs",
24 "Cargo.toml",
25 "COPYRIGHT",
26 "LICENSE*",
27 "/*.md",
28 "benches",
29 ]
30 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls"
31 documentation = "https://docs.rs/rustix"
32 readme = "README.md"
33 keywords = [
34 "api",
35 "file",
36 "network",
37 "safe",
38 "syscall",
39 ]
40 categories = [
41 "os::unix-apis",
42 "date-and-time",
43 "filesystem",
44 "network-programming",
45 ]
46 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
47 repository = "https://github.com/bytecodealliance/rustix"
48
49 [package.metadata.docs.rs]
50 features = ["all-apis"]
51 rustdoc-args = [
52 "--cfg",
53 "doc_cfg",
54 ]
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 ]
61
62 [[bench]]
63 name = "mod"
64 harness = false
65
66 [dependencies.alloc]
67 version = "1.0.0"
68 optional = true
69 package = "rustc-std-workspace-alloc"
70
71 [dependencies.bitflags]
72 version = "1.2.1"
73
74 [dependencies.compiler_builtins]
75 version = "0.1.49"
76 optional = true
77
78 [dependencies.core]
79 version = "1.0.0"
80 optional = true
81 package = "rustc-std-workspace-core"
82
83 [dependencies.io-lifetimes]
84 version = "1.0.0"
85 features = ["close"]
86 optional = true
87 default-features = false
88
89 [dependencies.itoa]
90 version = "1.0.1"
91 optional = true
92 default-features = false
93
94 [dev-dependencies.flate2]
95 version = "1.0"
96
97 [dev-dependencies.io-lifetimes]
98 version = "1.0.0"
99 features = ["close"]
100 default-features = false
101
102 [dev-dependencies.libc]
103 version = "0.2.133"
104
105 [dev-dependencies.libc_errno]
106 version = "0.2.8"
107 default-features = false
108 package = "errno"
109
110 [dev-dependencies.memoffset]
111 version = "0.7.1"
112
113 [dev-dependencies.serial_test]
114 version = "0.6"
115
116 [dev-dependencies.tempfile]
117 version = "3.2.0"
118
119 [build-dependencies.cc]
120 version = "1.0.68"
121 optional = true
122
123 [features]
124 all-apis = [
125 "fs",
126 "io_uring",
127 "mm",
128 "net",
129 "param",
130 "process",
131 "procfs",
132 "rand",
133 "runtime",
134 "termios",
135 "thread",
136 "time",
137 ]
138 all-impls = [
139 "os_pipe",
140 "fs-err",
141 ]
142 default = [
143 "std",
144 "use-libc-auxv",
145 ]
146 fs = []
147 fs-err = ["io-lifetimes/fs-err"]
148 io_uring = [
149 "fs",
150 "net",
151 ]
152 mm = []
153 net = []
154 os_pipe = ["io-lifetimes/os_pipe"]
155 param = ["fs"]
156 process = []
157 procfs = [
158 "once_cell",
159 "itoa",
160 "fs",
161 ]
162 rand = []
163 runtime = []
164 rustc-dep-of-std = [
165 "core",
166 "alloc",
167 "compiler_builtins",
168 "linux-raw-sys/rustc-dep-of-std",
169 "bitflags/rustc-dep-of-std",
170 ]
171 std = ["io-lifetimes"]
172 termios = []
173 thread = []
174 time = []
175 use-libc = [
176 "libc_errno",
177 "libc",
178 ]
179 use-libc-auxv = ["libc"]
180
181 [target."cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))".dependencies.linux-raw-sys]
182 version = "0.1.2"
183 features = [
184 "general",
185 "no_std",
186 ]
187 default-features = false
188
189 [target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion]
190 version = "0.4"
191
192 [target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))".dependencies.libc]
193 version = "0.2.133"
194 features = ["extra_traits"]
195 optional = true
196
197 [target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))".dependencies.libc_errno]
198 version = "0.2.8"
199 optional = true
200 default-features = false
201 package = "errno"
202
203 [target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))".dependencies.linux-raw-sys]
204 version = "0.1.2"
205 features = [
206 "general",
207 "errno",
208 "ioctl",
209 "no_std",
210 ]
211 default-features = false
212
213 [target."cfg(any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))))".dependencies.libc]
214 version = "0.2.133"
215 features = ["extra_traits"]
216
217 [target."cfg(any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))))".dependencies.libc_errno]
218 version = "0.2.8"
219 default-features = false
220 package = "errno"
221
222 [target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell]
223 version = "1.5.2"
224 optional = true
225
226 [target."cfg(windows)".dependencies.windows-sys]
227 version = "0.42.0"
228 features = [
229 "Win32_Foundation",
230 "Win32_Networking_WinSock",
231 "Win32_NetworkManagement_IpHelper",
232 "Win32_System_Threading",
233 ]
234
235 [target."cfg(windows)".dev-dependencies.ctor]
236 version = "0.1.21"