Files
Notes/notes-service/vendor/tower/Cargo.toml.orig
T
2026-08-01 16:11:49 +03:00

101 lines
3.4 KiB
TOML

[package]
name = "tower"
# When releasing to crates.io:
# - Update README.md
# - Update CHANGELOG.md.
# - Create "vX.X.X" git tag.
version = "0.5.3"
authors = ["Tower Maintainers <team@tower-rs.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/tower-rs/tower"
homepage = "https://github.com/tower-rs/tower"
description = """
Tower is a library of modular and reusable components for building robust
clients and servers.
"""
categories = ["asynchronous", "network-programming"]
keywords = ["io", "async", "non-blocking", "futures", "service"]
edition = "2018"
rust-version = "1.64.0"
[features]
full = [
"balance",
"buffer",
"discover",
"filter",
"hedge",
"limit",
"load",
"load-shed",
"make",
"ready-cache",
"reconnect",
"retry",
"spawn-ready",
"steer",
"timeout",
"util",
]
# FIXME: Use weak dependency once available (https://github.com/rust-lang/cargo/issues/8832)
log = ["tracing/log"]
balance = ["discover", "load", "ready-cache", "make", "slab", "util"]
buffer = ["tokio/sync", "tokio/rt", "tokio-util", "tracing", "pin-project-lite"]
discover = ["futures-core", "pin-project-lite"]
filter = ["futures-util", "pin-project-lite"]
hedge = ["util", "filter", "futures-util", "hdrhistogram", "tokio/time", "tracing"]
limit = ["tokio/time", "tokio/sync", "tokio-util", "tracing", "pin-project-lite"]
load = ["tokio/time", "tracing", "pin-project-lite"]
load-shed = ["pin-project-lite"]
make = ["pin-project-lite", "tokio"]
ready-cache = ["futures-core", "futures-util", "indexmap", "tokio/sync", "tracing", "pin-project-lite"]
reconnect = ["make", "tracing"]
retry = ["tokio/time", "util"]
spawn-ready = ["futures-util", "tokio/sync", "tokio/rt", "util", "tracing"]
steer = []
timeout = ["pin-project-lite", "tokio/time"]
util = ["futures-core", "futures-util", "pin-project-lite", "sync_wrapper"]
tokio-stream = [] # TODO: Remove this feature at the next breaking release.
[dependencies]
tower-layer = { version = "0.3.3", path = "../tower-layer" }
tower-service = { version = "0.3.3", path = "../tower-service" }
futures-core = { workspace = true, optional = true }
futures-util = { workspace = true, features = ["alloc"], optional = true }
hdrhistogram = { workspace = true, optional = true }
indexmap = { workspace = true, optional = true }
slab = { workspace = true, optional = true }
tokio = { workspace = true, optional = true }
tokio-util = { workspace = true, optional = true }
tracing = { workspace = true, features = ["std"], optional = true }
pin-project-lite = { workspace = true, optional = true }
sync_wrapper = { workspace = true, optional = true }
[dev-dependencies]
futures = { workspace = true, features = ["std"] }
futures-util = { workspace = true, features = ["async-await-macro"] }
hdrhistogram = { workspace = true }
tokio = { workspace = true, features = ["macros", "sync", "test-util", "rt-multi-thread"] }
tokio-stream = { workspace = true }
tokio-test = { workspace = true }
tower-test = { version = "0.4", path = "../tower-test" }
tracing = { workspace = true, features = ["std"] }
tracing-subscriber = { workspace = true, features = ["fmt", "ansi"] }
http = { workspace = true }
rand = { workspace = true, features = ["small_rng"] }
quickcheck = { workspace = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.playground]
features = ["full"]
[[example]]
name = "tower-balance"
path = "examples/tower-balance.rs"
required-features = ["full"]