[package]
edition = "2021"
rust-version = "1.88"
name = "timvw-rust-runtime"
version = "0.3.0"
build = false
include = [
"src/**/*",
"tests/**/*",
"README.md",
"CHANGELOG.md",
"LICENSE-*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime for clients generated by openapi-generator-timvw-rust: a tower-based HTTP client with a reqwest-like request builder"
homepage = "https://github.com/timvw/openapi-generator-timvw-rust/tree/main/runtime"
documentation = "https://docs.rs/timvw-rust-runtime"
readme = "README.md"
keywords = [
"openapi",
"tower",
"http",
"client",
"runtime",
]
categories = [
"api-bindings",
"web-programming::http-client",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/timvw/openapi-generator-timvw-rust"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"rustls",
"retry",
"fs",
]
fs = [
"dep:tokio",
"tokio/fs",
"tokio/io-util",
"dep:mime_guess",
]
native-tls = [
"reqwest",
"reqwest/native-tls",
]
reqwest = ["dep:reqwest"]
retry = [
"tower/retry",
"time",
"dep:httpdate",
]
rustls = [
"reqwest",
"reqwest/rustls",
]
time = [
"dep:tokio",
"tokio/time",
"dep:gloo-timers",
"dep:web-time",
]
tracing = [
"dep:tracing",
"dep:web-time",
]
[lib]
name = "timvw_rust_runtime"
path = "src/lib.rs"
[[test]]
name = "client"
path = "tests/client.rs"
[[test]]
name = "middleware"
path = "tests/middleware.rs"
[[test]]
name = "provider"
path = "tests/provider.rs"
[[test]]
name = "retry_after"
path = "tests/retry_after.rs"
[[test]]
name = "uploads"
path = "tests/uploads.rs"
[[test]]
name = "wasm"
path = "tests/wasm.rs"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.http]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.httpdate]
version = "1"
optional = true
[dependencies.mime_guess]
version = "2"
optional = true
[dependencies.reqwest]
version = "0.13"
features = ["stream"]
optional = true
default-features = false
[dependencies.secrecy]
version = "0.10.3"
[dependencies.serde]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.sync_wrapper]
version = "1"
features = ["futures"]
[dependencies.tower]
version = "0.5.2"
features = ["util"]
default-features = false
[dependencies.tracing]
version = "0.1.40"
features = ["std"]
optional = true
default-features = false
[dependencies.url]
version = "2.5"
[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1"
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.httpdate]
version = "1"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.serde]
version = "1"
features = ["derive"]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tempfile]
version = "3"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"time",
"sync",
"test-util",
"fs",
"io-util",
]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tower]
version = "0.5.2"
features = [
"util",
"retry",
"timeout",
"limit",
"buffer",
]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tower-http]
version = "0.6"
features = [
"set-header",
"trace",
]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tracing]
version = "0.1.40"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.wiremock]
version = "0.6"
[target.'cfg(target_family = "wasm")'.dependencies.gloo-timers]
version = "0.3"
features = ["futures"]
optional = true
[target.'cfg(target_family = "wasm")'.dependencies.web-time]
version = "1"
optional = true
[target.'cfg(target_family = "wasm")'.dev-dependencies.futures-channel]
version = "0.3"
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_family = "wasm")'.dev-dependencies.web-time]
version = "1"
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"