tower-batch-control 1.1.0

Tower middleware for batch request processing
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.88"
name = "tower-batch-control"
version = "1.1.0"
authors = [
    "Zcash Foundation <zebra@zfnd.org>",
    "Tower Maintainers <team@tower-rs.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower middleware for batch request processing"
readme = false
keywords = [
    "tower",
    "batch",
]
categories = [
    "algorithms",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/ZcashFoundation/zebra"

[features]
tonic = ["dep:tonic"]

[lib]
name = "tower_batch_control"
path = "src/lib.rs"

[[test]]
name = "ed25519"
path = "tests/ed25519.rs"

[[test]]
name = "worker"
path = "tests/worker.rs"

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-core]
version = "0.3.31"

[dependencies.pin-project]
version = "1.1.10"

[dependencies.rayon]
version = "1.10"

[dependencies.tokio]
version = "1.44"
features = [
    "time",
    "sync",
    "tracing",
    "macros",
]

[dependencies.tokio-util]
version = "0.7.14"

[dependencies.tonic]
version = "0.14"
optional = true

[dependencies.tower]
version = "0.4.13"
features = [
    "util",
    "buffer",
]

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-futures]
version = "0.2.5"

[dev-dependencies.color-eyre]
version = "0.6.3"
default-features = false

[dev-dependencies.ed25519-zebra]
version = "4.2"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.tokio]
version = "1.44"
features = [
    "full",
    "tracing",
    "test-util",
]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tower-fallback]
version = "0.2.42"

[dev-dependencies.tower-test]
version = "0.4"

[dev-dependencies.zebra-test]
version = "4.0.0"

[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
cast_ptr_alignment = "warn"
checked_conversions = "warn"
dbg_macro = "warn"
fallible_impl_from = "warn"
fn_to_numeric_cast_any = "warn"
implicit_saturating_sub = "warn"
invalid_upcast_comparisons = "warn"
print_stderr = "warn"
print_stdout = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
result_large_err = "allow"
todo = "warn"
try_err = "allow"
unnecessary_cast = "warn"
unwrap_in_result = "warn"

[lints.rust]
missing_docs = "warn"
non_ascii_idents = "deny"
unsafe_code = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(tokio_unstable)",
    'cfg(zcash_unstable, values("zfuture", "nu6.1", "nu7"))',
]