Debian Codegraph @

third_party/rust/mio/Cargo.toml

raw
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 = "2021"
14 rust-version = "1.70"
15 name = "mio"
16 version = "1.0.1"
17 authors = [
18 "Carl Lerche <[email protected]>",
19 "Thomas de Zeeuw <[email protected]>",
20 "Tokio Contributors <[email protected]>",
21 ]
22 build = false
23 include = [
24 "Cargo.toml",
25 "LICENSE",
26 "README.md",
27 "CHANGELOG.md",
28 "src/**/*.rs",
29 "examples/**/*.rs",
30 ]
31 autobins = false
32 autoexamples = false
33 autotests = false
34 autobenches = false
35 description = "Lightweight non-blocking I/O."
36 homepage = "https://github.com/tokio-rs/mio"
37 readme = "README.md"
38 keywords = [
39 "io",
40 "async",
41 "non-blocking",
42 ]
43 categories = ["asynchronous"]
44 license = "MIT"
45 repository = "https://github.com/tokio-rs/mio"
46
47 [package.metadata.docs.rs]
48 all-features = true
49 rustdoc-args = [
50 "--cfg",
51 "docsrs",
52 "--generate-link-to-definition",
53 ]
54 targets = [
55 "aarch64-apple-ios",
56 "aarch64-linux-android",
57 "wasm32-wasi",
58 "x86_64-apple-darwin",
59 "x86_64-pc-windows-gnu",
60 "x86_64-pc-windows-msvc",
61 "x86_64-unknown-dragonfly",
62 "x86_64-unknown-freebsd",
63 "x86_64-unknown-illumos",
64 "x86_64-unknown-linux-gnu",
65 "x86_64-unknown-netbsd",
66 "x86_64-unknown-openbsd",
67 "x86_64-unknown-hermit",
68 ]
69
70 [package.metadata.playground]
71 features = [
72 "os-poll",
73 "os-ext",
74 "net",
75 ]
76
77 [lib]
78 name = "mio"
79 path = "src/lib.rs"
80
81 [[example]]
82 name = "tcp_listenfd_server"
83 path = "examples/tcp_listenfd_server.rs"
84 required-features = [
85 "os-poll",
86 "net",
87 ]
88
89 [[example]]
90 name = "tcp_server"
91 path = "examples/tcp_server.rs"
92 required-features = [
93 "os-poll",
94 "net",
95 ]
96
97 [[example]]
98 name = "udp_server"
99 path = "examples/udp_server.rs"
100 required-features = [
101 "os-poll",
102 "net",
103 ]
104
105 [dependencies.log]
106 version = "0.4.8"
107 optional = true
108
109 [dev-dependencies.env_logger]
110 version = "0.9.3"
111 default-features = false
112
113 [dev-dependencies.rand]
114 version = "0.8"
115
116 [features]
117 default = ["log"]
118 net = []
119 os-ext = [
120 "os-poll",
121 "windows-sys/Win32_System_Pipes",
122 "windows-sys/Win32_Security",
123 ]
124 os-poll = []
125
126 [target.'cfg(target_os = "hermit")'.dependencies.libc]
127 version = "0.3.9"
128 package = "hermit-abi"
129
130 [target.'cfg(target_os = "wasi")'.dependencies.libc]
131 version = "0.2.149"
132
133 [target.'cfg(target_os = "wasi")'.dependencies.wasi]
134 version = "0.11.0"
135
136 [target."cfg(unix)".dependencies.libc]
137 version = "0.2.149"
138
139 [target."cfg(windows)".dependencies.windows-sys]
140 version = "0.52"
141 features = [
142 "Wdk_Foundation",
143 "Wdk_Storage_FileSystem",
144 "Wdk_System_IO",
145 "Win32_Foundation",
146 "Win32_Networking_WinSock",
147 "Win32_Storage_FileSystem",
148 "Win32_System_IO",
149 "Win32_System_WindowsProgramming",
150 ]
151
152 [lints.rust.unexpected_cfgs]
153 level = "warn"
154 priority = 0
155 check-cfg = [
156 "cfg(mio_unsupported_force_poll_poll)",
157 "cfg(mio_unsupported_force_waker_pipe)",
158 ]