[package] name = "http_dir" version = "0.1.9" edition = "2021" authors = ["Sherlock Holo "] readme = "README.md" keywords = ["http"] license = "MIT" repository = "https://github.com/Sherlock-Holo/http_dir" rust-version = "1.72" description = "HTTP file server" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.docs.rs] features = ["__internal_test"] [[example]] name = "disk" required-features = ["disk"] [[example]] name = "include_dir" required-features = ["include_dir"] [dependencies] tower-service = "0.3" http = "0.2" bytes = "1" http-body = "0.4" pin-project = "1" futures-util = { version = "0.3" } httpdate = "1" mime_guess = "2" http-range-header = "0.4" tokio = { version = "1", features = ["io-util"] } tokio-util = { version = "0.7", features = ["io"] } percent-encoding = "2" tower-http = { version = "0.4", features = ["set-status"] } include_dir = { version = "0.7", optional = true } [features] default = ["disk", "include-dir"] compression-gzip = [] compression-br = [] compression-deflate = [] disk = ["tokio/fs"] include-dir = ["include_dir/metadata"] __internal_test = ["compression-gzip", "compression-br", "compression-deflate", "disk", "include-dir"] [dev-dependencies] tokio = { version = "1", features = ["io-util", "rt", "macros"] } hyper = { version = "0.14", features = ["server", "runtime", "tcp", "http1"] } tower = { version = "0.4", features = ["make", "util"] } brotli = "3" flate2 = "1"