[package]
edition = "2024"
rust-version = "1.89"
name = "tower-reqwest"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Adapter between reqwest and tower-http crates."
documentation = "https://docs.rs/crate/tower-reqwest"
readme = "README.md"
keywords = [
"async",
"futures",
"http",
"io",
"service",
]
categories = [
"asynchronous",
"network-programming",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/alekseysidorov/tower-http-client"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
auth = ["dep:base64"]
default = []
set-header = []
[lib]
name = "tower_reqwest"
path = "src/lib.rs"
[[example]]
name = "add_authorization"
path = "examples/add_authorization.rs"
required-features = ["auth"]
[[example]]
name = "set_header"
path = "examples/set_header.rs"
required-features = ["set-header"]
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.futures-util]
version = "0.3"
[dependencies.http]
version = "1.3"
[dependencies.http-body-util]
version = "0.1"
[dependencies.include-utils]
version = "0.2"
[dependencies.pin-project]
version = "1.1"
[dependencies.reqwest]
version = "0.13.2"
default-features = false
[dependencies.thiserror]
version = "2.0"
[dependencies.tower-layer]
version = "0.3"
[dependencies.tower-service]
version = "0.3"
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.pretty_assertions]
version = "1.4"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.41.1"
features = [
"macros",
"rt-multi-thread",
]
[dev-dependencies.tower]
version = "0.5"
default-features = false
[dev-dependencies.tower-http]
version = "0.6"
features = [
"util",
"request-id",
"set-header",
"util",
]
default-features = false
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "deny"