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