# 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" rust-version = "1.72" name = "http_dir" version = "0.1.9" authors = ["Sherlock Holo "] description = "HTTP file server" readme = "README.md" keywords = ["http"] license = "MIT" repository = "https://github.com/Sherlock-Holo/http_dir" [package.metadata.docs.rs] features = ["__internal_test"] [[example]] name = "disk" required-features = ["disk"] [[example]] name = "include_dir" required-features = ["include_dir"] [dependencies.bytes] version = "1" [dependencies.futures-util] version = "0.3" [dependencies.http] version = "0.2" [dependencies.http-body] version = "0.4" [dependencies.http-range-header] version = "0.4" [dependencies.httpdate] version = "1" [dependencies.include_dir] version = "0.7" optional = true [dependencies.mime_guess] version = "2" [dependencies.percent-encoding] version = "2" [dependencies.pin-project] version = "1" [dependencies.tokio] version = "1" features = ["io-util"] [dependencies.tokio-util] version = "0.7" features = ["io"] [dependencies.tower-http] version = "0.4" features = ["set-status"] [dependencies.tower-service] version = "0.3" [dev-dependencies.brotli] version = "3" [dev-dependencies.flate2] version = "1" [dev-dependencies.hyper] version = "0.14" features = [ "server", "runtime", "tcp", "http1", ] [dev-dependencies.tokio] version = "1" features = [ "io-util", "rt", "macros", ] [dev-dependencies.tower] version = "0.4" features = [ "make", "util", ] [features] __internal_test = [ "compression-gzip", "compression-br", "compression-deflate", "disk", "include-dir", ] compression-br = [] compression-deflate = [] compression-gzip = [] default = [ "disk", "include-dir", ] disk = ["tokio/fs"] include-dir = ["include_dir/metadata"]