# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "axum-strangler" version = "0.4.0" description = "Strangler fig pattern utility crate for the Axum web framework" homepage = "https://github.com/MidasLamb/axum-strangler" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/MidasLamb/axum-strangler" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "simple_server" required-features = ["websocket"] [dependencies.async-trait] version = "0.1.58" [dependencies.axum] version = "0.6.0" optional = true [dependencies.axum-core] version = "0.3.0" [dependencies.base64] version = "0.13.1" [dependencies.futures-util] version = "0.3.21" features = ["futures-sink"] [dependencies.http] version = "0.2.8" [dependencies.hyper] version = "0.14.20" features = [ "client", "http2", "tcp", ] [dependencies.hyper-tls] version = "0.5.0" optional = true [dependencies.opentelemetry] version = "0.18.0" optional = true [dependencies.sha-1] version = "0.10.1" [dependencies.tokio] version = "1.20.0" features = ["macros"] optional = true default-features = false [dependencies.tokio-tungstenite] version = "0.18.0" optional = true [dependencies.tower-service] version = "0.3.2" [dependencies.tracing] version = "0.1.36" optional = true [dependencies.tracing-opentelemetry] version = "0.18.0" optional = true [dev-dependencies.axum] version = "0.6.0" features = ["ws"] [dev-dependencies.reqwest] version = "0.11.11" [dev-dependencies.tokio] version = "1.20.0" features = [ "macros", "rt-multi-thread", "signal", ] default-features = false [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [dev-dependencies.wiremock] version = "0.5.15" [features] https = ["dep:hyper-tls"] nested-routers = [ "dep:axum", "axum?/original-uri", ] tracing-opentelemetry-text-map-propagation = [ "dep:tracing", "dep:opentelemetry", "dep:tracing-opentelemetry", ] websocket = [ "dep:tokio", "dep:tokio-tungstenite", ] websocket-native-tls = [ "websocket", "tokio-tungstenite?/native-tls", ] websocket-rustls-tls-native-roots = [ "websocket", "tokio-tungstenite?/rustls-tls-native-roots", ] websocket-rustls-tls-webpki-roots = [ "websocket", "tokio-tungstenite?/rustls-tls-webpki-roots", ]