1[package]
2name = "tokio-util"
3# When releasing to crates.io:
4# - Remove path dependencies
5# - Update CHANGELOG.md.
6# - Create "tokio-util-0.7.x" git tag.
7version = "0.7.10"
8edition = "2021"
9rust-version = "1.56"
10authors = ["Tokio Contributors <team@tokio.rs>"]
11license = "MIT"
12repository = "https://github.com/tokio-rs/tokio"
13homepage = "https://tokio.rs"
14description = """
15Additional utilities for working with Tokio.
16"""
17categories = ["asynchronous"]
18
19[features]
20# No features on by default
21default = []
22
23# Shorthand for enabling everything
24full = ["codec", "compat", "io-util", "time", "net", "rt"]
25
26net = ["tokio/net"]
27compat = ["futures-io",]
28codec = ["tracing"]
29time = ["tokio/time","slab"]
30io = []
31io-util = ["io", "tokio/rt", "tokio/io-util"]
32rt = ["tokio/rt", "tokio/sync", "futures-util", "hashbrown"]
33
34__docs_rs = ["futures-util"]
35
36[dependencies]
37tokio = { version = "1.28.0", path = "../tokio", features = ["sync"] }
38bytes = "1.0.0"
39futures-core = "0.3.0"
40futures-sink = "0.3.0"
41futures-io = { version = "0.3.0", optional = true }
42futures-util = { version = "0.3.0", optional = true }
43pin-project-lite = "0.2.11"
44slab = { version = "0.4.4", optional = true } # Backs `DelayQueue`
45tracing = { version = "0.1.25", default-features = false, features = ["std"], optional = true }
46
47[target.'cfg(tokio_unstable)'.dependencies]
48hashbrown = { version = "0.14.0", optional = true }
49
50[dev-dependencies]
51tokio = { version = "1.0.0", path = "../tokio", features = ["full"] }
52tokio-test = { version = "0.4.0", path = "../tokio-test" }
53tokio-stream = { version = "0.1", path = "../tokio-stream" }
54
55async-stream = "0.3.0"
56futures = "0.3.0"
57futures-test = "0.3.5"
58parking_lot = "0.12.0"
59tempfile = "3.1.0"
60
61[package.metadata.docs.rs]
62all-features = true
63# enable unstable features in the documentation
64rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
65# it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else
66# dependencies will not be enabled, and the docs build will fail.
67rustc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
68