[package]
edition = "2021"
name = "mini-static"
version = "0.38.5"
authors = ["makeitmini"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A secure, async static file server with streaming, traversal protection, and connection limits."
homepage = "https://gitlab.com/makeitmini/static"
documentation = "https://docs.rs/mini-static"
readme = "README.md"
license = "MIT"
repository = "https://gitlab.com/makeitmini/static"
[features]
default = []
[lib]
name = "mini_static"
path = "src/lib.rs"
[[example]]
name = "bench_cached"
path = "examples/bench_cached.rs"
[[example]]
name = "bench_composed"
path = "examples/bench_composed.rs"
[[example]]
name = "bench_memory"
path = "examples/bench_memory.rs"
[[example]]
name = "bench_server"
path = "examples/bench_server.rs"
[[example]]
name = "mini-static"
path = "examples/mini-static.rs"
[[test]]
name = "cached_serving"
path = "tests/cached_serving.rs"
[[test]]
name = "composed"
path = "tests/composed.rs"
[[test]]
name = "content_length"
path = "tests/content_length.rs"
[[test]]
name = "directory_redirect"
path = "tests/directory_redirect.rs"
[[test]]
name = "encoded_separator"
path = "tests/encoded_separator.rs"
[[test]]
name = "hidden_files"
path = "tests/hidden_files.rs"
[[test]]
name = "http_responses"
path = "tests/http_responses.rs"
[[test]]
name = "http_version"
path = "tests/http_version.rs"
[[test]]
name = "injection_cap"
path = "tests/injection_cap.rs"
[[test]]
name = "keep_alive_bounds"
path = "tests/keep_alive_bounds.rs"
[[test]]
name = "live_reload"
path = "tests/live_reload.rs"
[[test]]
name = "methods"
path = "tests/methods.rs"
[[test]]
name = "not_found_page"
path = "tests/not_found_page.rs"
[[test]]
name = "range"
path = "tests/range.rs"
[[test]]
name = "request_logging"
path = "tests/request_logging.rs"
[[test]]
name = "resolve"
path = "tests/resolve.rs"
[[test]]
name = "resolve_property"
path = "tests/resolve_property.rs"
[[test]]
name = "respond"
path = "tests/respond.rs"
[[test]]
name = "response_headers"
path = "tests/response_headers.rs"
[[test]]
name = "server"
path = "tests/server.rs"
[[test]]
name = "sidecar_containment"
path = "tests/sidecar_containment.rs"
[[test]]
name = "spa_mode"
path = "tests/spa_mode.rs"
[[test]]
name = "threat_model_citations"
path = "tests/threat_model_citations.rs"
[[bench]]
name = "handle_request"
path = "benches/handle_request.rs"
harness = false
[[bench]]
name = "path_resolution"
path = "benches/path_resolution.rs"
harness = false
[dependencies.bytes]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
version = "1"
features = [
"http1",
"server",
]
[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
[dependencies.mini-serve]
version = "0.13.12"
[dependencies.percent-encoding]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"net",
"rt",
"macros",
"time",
"sync",
"signal",
"fs",
"io-util",
]
[dev-dependencies.criterion]
version = "0.5"
default-features = false
[dev-dependencies.percent-encoding]
version = "2"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"net",
"rt",
"macros",
"time",
"sync",
"signal",
"test-util",
]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.libc]
version = "0.2"
[target."cfg(unix)".dev-dependencies.libc]
version = "0.2"