nano-web 1.4.0

Static file server built with Rust with pre-compressed in-memory caching
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"
rust-version = "1.75"
name = "nano-web"
version = "1.4.0"
authors = ["James Cleveland <jc@blit.cc>"]
build = false
exclude = [
    ".github/",
    "docs/",
    "public/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Static file server built with Rust with pre-compressed in-memory caching"
homepage = "https://github.com/radiosilence/nano-web"
documentation = "https://docs.rs/nano-web"
readme = "README.md"
keywords = [
    "http",
    "server",
    "spa",
    "static",
    "web",
]
categories = [
    "command-line-utilities",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/radiosilence/nano-web"

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

[[bin]]
name = "nano-web"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.brotli]
version = "8.0"

[dependencies.bytes]
version = "1.11"

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.clap_complete]
version = "4.5"

[dependencies.dashmap]
version = "6.1"

[dependencies.flate2]
version = "1.1"

[dependencies.fxhash]
version = "0.2"

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

[dependencies.httpdate]
version = "1"

[dependencies.hyper]
version = "1.6"
features = [
    "http1",
    "server",
]

[dependencies.hyper-util]
version = "0.1"
features = [
    "http1",
    "server",
    "tokio",
]

[dependencies.mime_guess]
version = "2.0"

[dependencies.minijinja]
version = "2.7"

[dependencies.rayon]
version = "1.10"

[dependencies.serde]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.socket2]
version = "0.6"
features = ["all"]

[dependencies.tokio]
version = "1.47"
features = [
    "fs",
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "time",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.urlencoding]
version = "2.1"

[dependencies.walkdir]
version = "2.0"

[dependencies.zstd]
version = "0.13"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

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

[dev-dependencies.tokio-test]
version = "0.4"

[target.'cfg(target_env = "musl")'.dependencies.mimalloc]
version = "0.1.43"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"

[profile.dev]
opt-level = 1
debug = 2

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
strip = true