• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[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
9version       = "0.7.13"
10license       = "MIT"
11authors       = [
12  "Carl Lerche <me@carllerche.com>",
13  "Thomas de Zeeuw <thomasdezeeuw@gmail.com>",
14  "Tokio Contributors <team@tokio.rs>",
15]
16description   = "Lightweight non-blocking IO"
17documentation = "https://docs.rs/mio/0.7.13"
18homepage      = "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
32# For documentation of features see the `mio::features` module.
33[features]
34# By default Mio only provides a shell implementation.
35default = []
36
37# Enables the `Poll` and `Registry` types.
38os-poll = []
39# 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.
51
52[dependencies]
53log = "0.4.8"
54
55[target.'cfg(unix)'.dependencies]
56libc = "0.2.86"
57
58[target.'cfg(windows)'.dependencies]
59miow   = "0.3.6"
60winapi = { version = "0.3", features = ["winsock2", "mswsock", "mstcpip"] }
61ntapi  = "0.3"
62
63[dev-dependencies]
64env_logger = { version = "0.6.2", default-features = false }
65rand = "0.4"
66
67[package.metadata.docs.rs]
68all-features = true
69rustdoc-args = ["--cfg", "docsrs"]
70targets = [
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
83
84[package.metadata.playground]
85features = ["os-poll", "os-ext", "net"]
86
87[[example]]
88name = "tcp_server"
89required-features = ["os-poll", "net"]
90
91[[example]]
92name = "udp_server"
93required-features = ["os-poll", "net"]
94