[package]
edition = "2021"
rust-version = "1.88"
name = "tower-fallback"
version = "0.2.43"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Tower service combinator that sends requests to a first service, then retries processing on a second fallback service if the first service errors."
readme = false
keywords = [
"tower",
"batch",
]
categories = [
"algorithms",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZcashFoundation/zebra"
[lib]
name = "tower_fallback"
path = "src/lib.rs"
[[test]]
name = "fallback"
path = "tests/fallback.rs"
[dependencies.futures-core]
version = "0.3.31"
[dependencies.pin-project]
version = "1.1.10"
[dependencies.tower]
version = "0.4.13"
[dependencies.tracing]
version = "0.1.41"
[dev-dependencies.tokio]
version = "1.44"
features = [
"full",
"tracing",
"test-util",
]
[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"))',
]