[package]
edition = "2024"
rust-version = "1.88"
name = "toac"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower-compatible OpenAPI client runtime. Types and traits that generated code from `toac-build` links against."
homepage = "https://github.com/4t145/tower-openapi-client"
readme = "README.md"
keywords = [
"openapi",
"tower",
"http",
"client",
"codegen",
]
categories = [
"web-programming::http-client",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/4t145/tower-openapi-client"
[features]
base64 = []
ndjson = ["dep:futures-util"]
reqwest = ["dep:reqwest"]
sse = [
"dep:futures-util",
"dep:sse-stream",
]
xml = ["dep:quick-xml"]
[lib]
name = "toac"
path = "src/lib.rs"
[[test]]
name = "test_api_client"
path = "tests/test_api_client.rs"
[[test]]
name = "test_codecs"
path = "tests/test_codecs.rs"
[[test]]
name = "test_reqwest_backend"
path = "tests/test_reqwest_backend.rs"
[[test]]
name = "test_runtime_surface"
path = "tests/test_runtime_surface.rs"
[[test]]
name = "test_security"
path = "tests/test_security.rs"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.http]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.percent-encoding]
version = "2"
[dependencies.quick-xml]
version = "0.40"
features = ["serialize"]
optional = true
[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.sse-stream]
version = "0.2"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tower]
version = "0.5"
features = ["util"]
[dependencies.tower-http]
version = "0.6"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.futures-executor]
version = "0.3"
[dev-dependencies.reqwest]
version = "0.13"
features = ["rustls"]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.wiremock]
version = "0.6"