# 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 believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "tophat" version = "0.3.0" authors = ["Walther Chen "] description = "A small, pragmatic, and flexible async http server" readme = "README.md" keywords = ["http"] categories = ["web-programming::http-server"] license = "MIT OR Apache-2.0" repository = "https://github.com/hwchen/tophat" [package.metadata.docs.rs] all-features = true [[example]] name = "routing" required-features = ["router"] [[example]] name = "identity" required-features = ["identity", "router"] [[example]] name = "middleware" required-features = ["router"] [[example]] name = "cors" required-features = ["router", "cors"] [[example]] name = "errors" required-features = ["router"] [[example]] name = "errors_verbose" required-features = ["router"] [dependencies.async-channel] version = "1.5.1" [dependencies.async-dup] version = "1.2.2" [dependencies.byte-pool] version = "0.2.2" [dependencies.cookie] version = "0.14.3" optional = true [dependencies.futures-lite] version = "1.11.3" [dependencies.futures-timer] version = "3.0.2" [dependencies.futures-util] version = "0.3.8" features = ["io"] [dependencies.headers] version = "0.3.2" optional = true [dependencies.http] version = "0.2.2" [dependencies.httparse] version = "1.3.4" [dependencies.httpdate] version = "0.3.2" [dependencies.jsonwebtoken] version = "7.2.0" optional = true [dependencies.lazy_static] version = "1.4.0" [dependencies.path-tree] version = "0.1.12" optional = true [dependencies.pin-project-lite] version = "0.2.0" [dependencies.serde] version = "1.0.118" features = ["derive"] optional = true [dependencies.time] version = "0.2.23" optional = true default_features = false [dependencies.tracing] version = "0.1.22" [dependencies.type-map] version = "0.3.0" optional = true [dev-dependencies.async-channel] version = "1.5.1" [dev-dependencies.async-dup] version = "1.2.2" [dev-dependencies.easy-parallel] version = "3.1.0" [dev-dependencies.futures] version = "0.3.8" [dev-dependencies.num_cpus] version = "1.13.0" [dev-dependencies.smol] version = "1.2.5" [dev-dependencies.tracing-subscriber] version = "0.2.15" [features] cors = ["headers"] default = [] identity = ["cookie", "jsonwebtoken", "serde", "time"] router = ["path-tree", "type-map"]