# 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 = "treemux" version = "0.8.5" authors = ["Ivan Porto Carrero "] description = "A high performance HTTP request router that scales well." readme = "README.md" keywords = [ "hyper", "path", "tree", "radix", "router", ] categories = [ "web-programming::http-server", "network-programming", "algorithms", ] license = "MIT" repository = "https://github.com/casualjim/rs-treemux/" [package.metadata.docs.rs] all-features = true [[example]] name = "jsonapi" path = "examples/jsonapi.rs" required-features = ["tracing"] [[example]] name = "simple" path = "examples/simple.rs" [[example]] name = "staticfile" path = "examples/staticfile.rs" required-features = ["hyper-staticfile"] [[example]] name = "middlewares" path = "examples/middlewares.rs" required-features = ["tracing"] [[example]] name = "scoping" path = "examples/scoping.rs" [dependencies.anyhow] version = "1" [dependencies.async-compression] version = "0.3" optional = true [dependencies.cookie] version = "0.17" optional = true [dependencies.flate2] version = "1" [dependencies.futures] version = "0.3" [dependencies.futures-util] version = "0.3" [dependencies.hyper] version = "0.14" features = [ "server", "tcp", "http1", "http2", ] [dependencies.hyper-rustls] version = "0.24" optional = true [dependencies.hyper-staticfile] version = "0.9" optional = true [dependencies.hyper-tls] version = "0.5" optional = true [dependencies.percent-encoding] version = "2" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" [dependencies.tokio-rustls] version = "0.24" optional = true [dependencies.tower-layer] version = "0.3" [dependencies.tower-service] version = "0.3" [dependencies.tracing] version = "0.1" optional = true [dev-dependencies.env_logger] version = "0.10" [dev-dependencies.hyper-staticfile] version = "0.9" [dev-dependencies.serde] version = "1" [dev-dependencies.serde_json] version = "1" [dev-dependencies.test-log] version = "0.2" [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3.15" features = [ "env-filter", "fmt", ] [features] default = [] full = [ "hyper-staticfile", "async-compression", "tracing", ] native-tls = ["hyper-tls"] rustls = [ "hyper-rustls", "tokio-rustls", ]