Files
letro-authentication-service/crates/http/Cargo.toml
2023-06-14 12:02:16 +02:00

59 lines
1.7 KiB
TOML

[package]
name = "mas-http"
version = "0.1.0"
authors = ["Quentin Gliech <quenting@element.io>"]
edition = "2021"
license = "Apache-2.0"
[dependencies]
aws-smithy-http = { version = "0.55.3", optional = true }
aws-types = { version = "0.55.3", optional = true }
axum = { version = "0.6.18", optional = true }
bytes = "1.4.0"
futures-util = "0.3.28"
headers = "0.3.8"
http = "0.2.9"
http-body = "0.4.5"
hyper = "0.14.26"
hyper-rustls = { version = "0.24.0", features = ["http1", "http2"], default-features = false, optional = true }
once_cell = "1.18.0"
opentelemetry = "0.19.0"
rustls = { version = "0.21.1", optional = true }
rustls-native-certs = { version = "0.6.2", optional = true }
serde = "1.0.164"
serde_json = "1.0.96"
serde_urlencoded = "0.7.1"
thiserror = "1.0.40"
tokio = { version = "1.28.2", features = ["sync", "parking_lot"], optional = true }
tower = { version = "0.4.13", features = [] }
tower-http = { version = "0.4.0", features = ["cors"] }
tracing = "0.1.37"
tracing-opentelemetry = "0.19.0"
webpki = { version = "0.22.0", optional = true }
webpki-roots = { version = "0.23.1", optional = true }
mas-tower = { path = "../tower" }
[dev-dependencies]
anyhow = "1.0.71"
serde = { version = "1.0.164", features = ["derive"] }
tokio = { version = "1.28.2", features = ["macros", "rt"] }
tower = { version = "0.4.13", features = ["util"] }
[features]
axum = ["dep:axum"]
aws-sdk = ["dep:aws-smithy-http", "dep:aws-types"]
native-roots = ["dep:rustls-native-certs"]
webpki-roots = ["dep:webpki-roots"]
client = [
"dep:rustls",
"hyper/tcp",
"dep:hyper-rustls",
"dep:tokio",
"dep:webpki",
"tower/limit",
"tower-http/timeout",
"tower-http/follow-redirect",
"tower-http/set-header",
]