blob: aa2e6776ca1b6870b41efb493d66bfaf6c113392 [file] [log] [blame]
Joel Galenson4bf0c302020-10-23 08:03:13 -07001[package]
2edition = "2018"
3name = "mio"
4# When releasing to crates.io:
5# - Update html_root_url.
6# - Update CHANGELOG.md.
7# - Update doc URL.
8# - Create git tag
Joel Galenson0a254c32021-06-21 13:30:46 -07009version = "0.7.13"
Joel Galenson4bf0c302020-10-23 08:03:13 -070010license = "MIT"
Haibo Huang0cb7a8f2021-01-05 21:36:04 -080011authors = [
12 "Carl Lerche <me@carllerche.com>",
13 "Thomas de Zeeuw <thomasdezeeuw@gmail.com>",
14 "Tokio Contributors <team@tokio.rs>",
15]
Joel Galenson4bf0c302020-10-23 08:03:13 -070016description = "Lightweight non-blocking IO"
Joel Galenson0a254c32021-06-21 13:30:46 -070017documentation = "https://docs.rs/mio/0.7.13"
Joel Galenson4bf0c302020-10-23 08:03:13 -070018homepage = "https://github.com/tokio-rs/mio"
19repository = "https://github.com/tokio-rs/mio"
20readme = "README.md"
21keywords = ["io", "async", "non-blocking"]
22categories = ["asynchronous"]
23include = [
24 "Cargo.toml",
25 "LICENSE",
26 "README.md",
27 "CHANGELOG.md",
28 "src/**/*.rs",
29 "examples/**/*.rs",
30]
31
Haibo Huangb871bf72020-11-16 17:42:39 -080032# For documentation of features see the `mio::features` module.
Joel Galenson4bf0c302020-10-23 08:03:13 -070033[features]
Haibo Huangb871bf72020-11-16 17:42:39 -080034# By default Mio only provides a shell implementation.
Joel Galenson4bf0c302020-10-23 08:03:13 -070035default = []
Haibo Huangb871bf72020-11-16 17:42:39 -080036
37# Enables the `Poll` and `Registry` types.
Joel Galenson4bf0c302020-10-23 08:03:13 -070038os-poll = []
Haibo Huangb871bf72020-11-16 17:42:39 -080039# Enables additional OS specific extensions, e.g. Unix `pipe(2)`.
40os-ext = ["os-poll"]
41# Enables `mio::net` module containing networking primitives.
42net = []
43
44# Deprecated features, will be removed in a future version.
45extra-docs = [] # Docs are now always present.
46tcp = ["net"] # Replaced with "net" feature.
47udp = ["net"] # Replaced with "net" feature.
48uds = ["net"] # Replaced with "net" feature.
49pipe = ["os-ext"] # Replaced with "os-ext" feature.
50os-util = ["os-ext"]# Replaced with "os-ext" feature.
Joel Galenson4bf0c302020-10-23 08:03:13 -070051
52[dependencies]
53log = "0.4.8"
54
55[target.'cfg(unix)'.dependencies]
Haibo Huang800e8642021-02-17 19:53:43 -080056libc = "0.2.86"
Joel Galenson4bf0c302020-10-23 08:03:13 -070057
58[target.'cfg(windows)'.dependencies]
Haibo Huangb871bf72020-11-16 17:42:39 -080059miow = "0.3.6"
Joel Galensonaa25fe62021-04-01 17:18:00 -070060winapi = { version = "0.3", features = ["winsock2", "mswsock", "mstcpip"] }
Joel Galenson4bf0c302020-10-23 08:03:13 -070061ntapi = "0.3"
62
63[dev-dependencies]
64env_logger = { version = "0.6.2", default-features = false }
Joel Galenson4bf0c302020-10-23 08:03:13 -070065rand = "0.4"
Joel Galenson4bf0c302020-10-23 08:03:13 -070066
67[package.metadata.docs.rs]
68all-features = true
69rustdoc-args = ["--cfg", "docsrs"]
Haibo Huang0cb7a8f2021-01-05 21:36:04 -080070targets = [
71 "aarch64-apple-ios",
72 "aarch64-linux-android",
73 "x86_64-apple-darwin",
74 "x86_64-pc-windows-msvc",
75 "x86_64-sun-solaris",
76 "x86_64-unknown-dragonfly",
77 "x86_64-unknown-freebsd",
78 "x86_64-unknown-linux-gnu",
79 "x86_64-unknown-netbsd",
80 "x86_64-unknown-openbsd",
81]
82
Joel Galenson4bf0c302020-10-23 08:03:13 -070083
84[package.metadata.playground]
Haibo Huangb871bf72020-11-16 17:42:39 -080085features = ["os-poll", "os-ext", "net"]
Joel Galenson4bf0c302020-10-23 08:03:13 -070086
87[[example]]
88name = "tcp_server"
Haibo Huangb871bf72020-11-16 17:42:39 -080089required-features = ["os-poll", "net"]
Joel Galenson4bf0c302020-10-23 08:03:13 -070090
91[[example]]
92name = "udp_server"
Haibo Huangb871bf72020-11-16 17:42:39 -080093required-features = ["os-poll", "net"]