rust-serv 0.3.0

A high-performance, secure, and feature-rich HTTP static file server in Rust
Documentation
# 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"
name = "rust-serv"
version = "0.3.0"
authors = ["Marvin <imnull@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, secure, and feature-rich HTTP static file server in Rust"
homepage = "https://github.com/imnull/rust-serv"
readme = "README.md"
keywords = [
    "http",
    "server",
    "static-files",
    "web-server",
    "hyper",
]
categories = [
    "web-programming::http-server",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/imnull/rust-serv"

[lib]
name = "rust_serv"
path = "src/lib.rs"

[[bin]]
name = "rust-serv"
path = "src/main.rs"

[[test]]
name = "coverage_boost_tests"
path = "tests/coverage_boost_tests.rs"

[[test]]
name = "edge_case_tests"
path = "tests/edge_case_tests.rs"

[[test]]
name = "error_path_tests"
path = "tests/error_path_tests.rs"

[[test]]
name = "handler_error_tests"
path = "tests/handler_error_tests.rs"

[[test]]
name = "integration_complete"
path = "tests/integration_complete.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "iteration2_static_files"
path = "tests/iteration2_static_files.rs"

[[test]]
name = "iteration3_directory_index"
path = "tests/iteration3_directory_index.rs"

[[test]]
name = "iteration5_range_integration"
path = "tests/iteration5_range_integration.rs"

[[test]]
name = "middleware_integration"
path = "tests/middleware_integration.rs"

[[test]]
name = "server_error_tests"
path = "tests/server_error_tests.rs"

[[bench]]
name = "performance"
path = "benches/performance.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.brotli]
version = "7.0"

[dependencies.bytes]
version = "1.9"

[dependencies.flate2]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.http-body]
version = "1.0"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1.5"
features = ["full"]

[dependencies.hyper-util]
version = "0.1"
features = ["full"]

[dependencies.instant-acme]
version = "0.7"

[dependencies.mime_guess]
version = "2.0"

[dependencies.notify]
version = "7.0"

[dependencies.rcgen]
version = "0.13"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]

[dependencies.rustls-pemfile]
version = "2.2"

[dependencies.rustls-pki-types]
version = "1"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha1]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "local-offset",
]

[dependencies.tokio]
version = "1.42"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-tungstenite]
version = "0.26"

[dependencies.toml]
version = "0.8"

[dependencies.tower]
version = "0.5"
features = ["full"]

[dependencies.tower-http]
version = "0.6"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.tungstenite]
version = "0.26"

[dependencies.urlencoding]
version = "2.1"

[dependencies.x509-parser]
version = "0.16"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.tempfile]
version = "3.14"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true