serdir 0.3.0

helpers for conditional GET, HEAD, byte range serving, and gzip content encoding for static files and more with hyper and tokio
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.88"
name = "serdir"
version = "0.3.0"
authors = [
    "Greg Steffensen <greg.steffensen@gmail.com>",
    "Scott Lamb <slamb@slamb.org>",
]
build = false
autolib = 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",
    "tower",
    "hyper",
]
categories = ["web-programming::http-server"]
license = "MIT/Apache-2.0"
repository = "https://github.com/StupendousYappi/serdir"

[package.metadata.docs.rs]
features = [
    "runtime-compression",
    "tower",
    "hyper",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
hyper = ["dep:hyper"]
runtime-compression = [
    "dep:brotli",
    "dep:tempfile",
]
tower = [
    "dep:tower",
    "dep:http-body-util",
]

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

[[example]]
name = "common"
path = "examples/common.rs"

[[example]]
name = "hyper"
path = "examples/hyper.rs"
required-features = ["hyper"]

[[example]]
name = "native_apis"
path = "examples/native_apis.rs"
required-features = ["hyper"]

[[example]]
name = "tower_middleware"
path = "examples/tower_middleware.rs"
required-features = [
    "runtime-compression",
    "tower",
]

[[example]]
name = "tower_service"
path = "examples/tower_service.rs"
required-features = [
    "tower",
    "runtime-compression",
]

[[test]]
name = "entity-acceptance"
path = "tests/entity-acceptance.rs"

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

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

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

[[bench]]
name = "file"
path = "benches/file.rs"
harness = false
required-features = ["hyper"]

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

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

[dependencies.brotli]
version = "7.0"
optional = true

[dependencies.bytes]
version = "1.11"

[dependencies.futures-core]
version = "0.3"
features = ["alloc"]
default-features = false

[dependencies.futures-util]
version = "0.3"
default-features = false

[dependencies.http]
version = "1.4"

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

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

[dependencies.httpdate]
version = "1.0"

[dependencies.hyper]
version = "1.0"
optional = true
default-features = false

[dependencies.log]
version = "0.4.29"
features = ["std"]

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rapidhash]
version = "4.2"

[dependencies.sieve-cache]
version = "1.1.6"

[dependencies.sync_wrapper]
version = "1.0"

[dependencies.tempfile]
version = "3.11"
optional = true

[dependencies.tokio]
version = "1.49"
features = ["rt-multi-thread"]

[dependencies.tower]
version = "0.4"
optional = true

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.argh]
version = "0.1"

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

[dev-dependencies.env_logger]
version = "0.11.8"

[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",
    "service",
]

[dev-dependencies.mime]
version = "0.3"

[dev-dependencies.nix]
version = "0.29"
features = [
    "dir",
    "fs",
]
default-features = false

[dev-dependencies.once_cell]
version = "1.3"

[dev-dependencies.pretty_assertions]
version = "1.4.1"
features = ["unstable"]

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.reqwest]
version = "0.12.7"
features = ["gzip"]
default-features = false

[dev-dependencies.socket2]
version = "0.5.0"

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

[dev-dependencies.tokio]
version = "1.39.0"
features = [
    "macros",
    "sync",
]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
]

[profile.bench]
debug = 2

[profile.release]
debug = 2