# 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.79" name = "http-serve" version = "0.4.0-rc.1" authors = ["Scott Lamb "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "helpers for conditional GET, HEAD, byte range serving, and gzip content encoding for static files and more with hyper and tokio" readme = "README.md" keywords = [ "http", "file", "range", ] categories = ["web-programming::http-server"] license = "MIT/Apache-2.0" repository = "https://github.com/scottlamb/http-serve" [package.metadata.docs.rs] features = ["dir"] rustdoc-args = [ "--cfg", "docsrs", ] [profile.bench] debug = 2 [profile.release] debug = 2 [lib] name = "http_serve" path = "src/lib.rs" [[example]] name = "serve_dir" path = "examples/serve_dir.rs" required-features = ["dir"] [[example]] name = "serve_file" path = "examples/serve_file.rs" [[test]] name = "chunked-acceptance" path = "tests/chunked-acceptance.rs" [[test]] name = "entity-acceptance" path = "tests/entity-acceptance.rs" [[bench]] name = "file" path = "benches/file.rs" harness = false [[bench]] name = "inmem" path = "benches/inmem.rs" harness = false [dependencies.bytes] version = "1.0" [dependencies.flate2] version = "1.0.1" [dependencies.futures-core] version = "0.3.1" default-features = false [dependencies.futures-util] version = "0.3.1" default-features = false [dependencies.http] version = "1.0.0" [dependencies.http-body] version = "1.0.0" [dependencies.httpdate] version = "1.0.0" [dependencies.memchr] version = "2.0" [dependencies.mime] version = "0.3.7" [dependencies.pin-project] version = "1.1.5" [dependencies.smallvec] version = "1.4.0" [dependencies.sync_wrapper] version = "1.0.1" [dependencies.tokio] version = "1.39.0" features = ["rt-multi-thread"] [dev-dependencies.criterion] version = "0.5" features = ["async_tokio"] [dev-dependencies.htmlescape] version = "0.3" [dev-dependencies.http-body-util] version = "0.1.0" [dev-dependencies.httparse] version = "1.3.4" [dev-dependencies.hyper] version = "1.0.0" features = [ "http1", "server", ] [dev-dependencies.hyper-util] version = "0.1.2" features = ["tokio"] [dev-dependencies.mime_guess] version = "2.0" [dev-dependencies.nix] version = "0.29" features = [ "dir", "fs", ] default-features = false [dev-dependencies.once_cell] version = "1.3" [dev-dependencies.reqwest] version = "0.12.7" features = ["gzip"] default-features = false [dev-dependencies.socket2] version = "0.5.0" [dev-dependencies.tempfile] version = "3.1.0" [dev-dependencies.tokio] version = "1.39.0" features = [ "macros", "sync", ] [features] dir = [] [target."cfg(unix)".dependencies.libc] version = "0.2.69" [target."cfg(windows)".dependencies.winapi] version = "0.3.6" features = [ "errhandlingapi", "std", "winbase", "winerror", ]