Files
tokio/tokio-util/Cargo.toml
T

76 lines
2.1 KiB
TOML
Raw Normal View History

2018-06-04 22:36:06 -05:00
[package]
2019-10-22 10:13:49 -07:00
name = "tokio-util"
2018-06-04 22:36:06 -05:00
# When releasing to crates.io:
# - Remove path dependencies (if any)
2018-06-04 22:36:06 -05:00
# - Update CHANGELOG.md.
# - Create "tokio-util-0.7.x" git tag.
2026-01-04 13:53:14 +01:00
version = "0.7.18"
edition = "2021"
2025-10-02 11:14:17 +02:00
rust-version = "1.71"
authors = ["Tokio Contributors <[email protected]>"]
2018-06-04 22:36:06 -05:00
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
description = """
2019-10-22 10:13:49 -07:00
Additional utilities for working with Tokio.
2018-06-04 22:36:06 -05:00
"""
categories = ["asynchronous"]
2019-11-22 15:55:10 -08:00
[features]
# No features on by default
default = []
# Shorthand for enabling everything
2025-08-03 08:58:28 +01:00
full = ["codec", "compat", "io-util", "time", "net", "rt", "join-map"]
2019-11-22 15:55:10 -08:00
2020-11-06 10:59:15 -05:00
net = ["tokio/net"]
compat = ["futures-io"]
codec = []
time = ["tokio/time", "slab"]
io = []
2021-10-22 12:46:29 -04:00
io-util = ["io", "tokio/rt", "tokio/io-util"]
2025-08-03 08:58:28 +01:00
rt = ["tokio/rt", "tokio/sync", "futures-util"]
join-map = ["rt", "hashbrown"]
2019-11-22 15:55:10 -08:00
__docs_rs = ["futures-util"]
2018-06-04 22:36:06 -05:00
[dependencies]
tokio = { version = "1.47.0", features = ["sync"] }
bytes = "1.5.0"
2019-11-07 05:09:10 +09:00
futures-core = "0.3.0"
futures-sink = "0.3.0"
futures-io = { version = "0.3.0", optional = true }
futures-util = { version = "0.3.0", optional = true }
2023-08-06 08:34:08 -03:00
pin-project-lite = "0.2.11"
slab = { version = "0.4.4", optional = true } # Backs `DelayQueue`
tracing = { version = "0.1.29", default-features = false, features = ["std"], optional = true }
hashbrown = { version = "0.15.0", default-features = false, optional = true }
2022-04-26 10:25:48 -07:00
2019-06-27 18:10:29 +01:00
[dev-dependencies]
tokio = { version = "1.0.0", features = ["full"] }
tokio-test = "0.4.0"
tokio-stream = "0.1"
async-stream = "0.3.0"
futures = "0.3.0"
futures-test = "0.3.5"
parking_lot = "0.12.0"
tempfile = "3.1.0"
2025-11-06 13:20:08 +02:00
[target.'cfg(loom)'.dev-dependencies]
loom = { version = "0.7", features = ["futures", "checkpoint"] }
[package.metadata.docs.rs]
all-features = true
2022-05-14 18:55:26 +02:00
# enable unstable features in the documentation
rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
# it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else
# dependencies will not be enabled, and the docs build will fail.
rustc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
[package.metadata.playground]
features = ["full"]
[lints]
workspace = true