1[package]
2name = "tokio"
3# When releasing to crates.io:
4# - Remove path dependencies
5# - Update html_root_url.
6# - Update doc url
7#   - Cargo.toml
8#   - README.md
9# - Update CHANGELOG.md.
10# - Create "v0.2.x" git tag.
11version = "0.2.25"
12edition = "2018"
13authors = ["Tokio Contributors <team@tokio.rs>"]
14license = "MIT"
15readme = "README.md"
16documentation = "https://docs.rs/tokio/0.2.25/tokio/"
17repository = "https://github.com/tokio-rs/tokio"
18homepage = "https://tokio.rs"
19description = """
20An event-driven, non-blocking I/O platform for writing asynchronous I/O
21backed applications.
22"""
23categories = ["asynchronous", "network-programming"]
24keywords = ["io", "async", "non-blocking", "futures"]
25
26[features]
27# Include nothing by default
28default = []
29
30# enable everything
31full = [
32  "blocking",
33  "dns",
34  "fs",
35  "io-driver",
36  "io-util",
37  "io-std",
38  "macros",
39  "net",
40  "process",
41  "rt-core",
42  "rt-util",
43  "rt-threaded",
44  "signal",
45  "stream",
46  "sync",
47  "time",
48]
49
50blocking = ["rt-core"]
51dns = ["rt-core"]
52fs = ["rt-core", "io-util"]
53io-driver = ["mio", "lazy_static"]
54io-util = ["memchr"]
55# stdin, stdout, stderr
56io-std = ["rt-core"]
57macros = ["tokio-macros"]
58net = ["dns", "tcp", "udp", "uds"]
59process = [
60  "io-driver",
61  "libc",
62  "mio-named-pipes",
63  "signal",
64  "winapi/consoleapi",
65  "winapi/minwindef",
66  "winapi/threadpoollegacyapiset",
67  "winapi/winerror",
68]
69# Includes basic task execution capabilities
70rt-core = ["slab"]
71rt-util = []
72rt-threaded = [
73  "num_cpus",
74  "rt-core",
75]
76signal = [
77  "io-driver",
78  "lazy_static",
79  "libc",
80  "mio-uds",
81  "signal-hook-registry",
82  "winapi/consoleapi",
83  "winapi/minwindef",
84]
85stream = ["futures-core"]
86sync = ["fnv"]
87test-util = []
88tcp = ["io-driver", "iovec"]
89time = ["slab"]
90udp = ["io-driver"]
91uds = ["io-driver", "mio-uds", "libc"]
92
93[dependencies]
94tokio-macros = { version = "0.2.6", optional = true }
95
96bytes = "0.5.0"
97pin-project-lite = "0.1.1"
98
99# Everything else is optional...
100fnv = { version = "1.0.6", optional = true }
101futures-core = { version = "0.3.0", optional = true }
102lazy_static = { version = "1.4.0", optional = true }
103memchr = { version = "2.2", optional = true }
104mio = { version = "0.6.23", optional = true }
105iovec = { version = "0.1.4", optional = true }
106num_cpus = { version = "1.8.0", optional = true }
107parking_lot = { version = "0.11.0", optional = true } # Not in full
108slab = { version = "0.4.2", optional = true } # Backs `DelayQueue`
109tracing = { version = "0.1.16", default-features = false, features = ["std"], optional = true } # Not in full
110
111[target.'cfg(unix)'.dependencies]
112mio-uds = { version = "0.6.5", optional = true }
113libc = { version = "0.2.42", optional = true }
114signal-hook-registry = { version = "1.1.1", optional = true }
115
116[target.'cfg(windows)'.dependencies]
117mio-named-pipes = { version = "0.1.6", optional = true }
118
119[target.'cfg(windows)'.dependencies.winapi]
120version = "0.3.8"
121default-features = false
122optional = true
123
124[dev-dependencies]
125tokio-test = { version = "0.2.0", path = "../tokio-test" }
126futures = { version = "0.3.0", features = ["async-await"] }
127futures-test = "0.3.0"
128proptest = "0.9.4"
129tempfile = "3.1.0"
130
131[target.'cfg(loom)'.dev-dependencies]
132loom = { version = "0.3.5", features = ["futures", "checkpoint"] }
133
134[package.metadata.docs.rs]
135all-features = true
136rustdoc-args = ["--cfg", "docsrs"]
137
138[package.metadata.playground]
139features = ["full"]
140