rust-web-server 17.21.0

Static file web server and HTTP toolkit written in Rust. Supports HTTP/3, HTTP/2, and HTTP/1.1. HTTP/3 and HTTP/2 require a TLS certificate; without one the server falls back to plain HTTP/1.1 automatically.
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 = "rust-web-server"
version = "17.21.0"
authors = ["Bohdan Tsap <bohdan.tsap@tutanota.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Static file web server and HTTP toolkit written in Rust. Supports HTTP/3, HTTP/2, and HTTP/1.1. HTTP/3 and HTTP/2 require a TLS certificate; without one the server falls back to plain HTTP/1.1 automatically."
readme = "README.md"
keywords = [
    "http",
    "web-server",
    "http3",
    "toolkit",
    "network",
]
categories = [
    "network-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/bohdaq/rust-web-server"

[features]
auth = [
    "dep:hmac",
    "dep:sha2",
]
default = ["http3"]
http1 = [
    "dep:ctrlc",
    "dep:libc",
]
http2 = [
    "dep:h2",
    "dep:rustls",
    "dep:tokio-rustls",
    "dep:tokio",
    "dep:bytes",
    "dep:rustls-pemfile",
    "dep:http",
]
http3 = [
    "http2",
    "dep:quinn",
    "dep:h3",
    "dep:h3-quinn",
]
macros = ["dep:rws-macros"]
serde = [
    "dep:serde",
    "dep:serde_json",
]

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

[[bin]]
name = "rws"
path = "src/main.rs"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.ctrlc]
version = "3"
optional = true

[dependencies.file-ext]
version = "12.0.0"

[dependencies.flate2]
version = "1"

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

[dependencies.h3]
version = "0.0.8"
optional = true

[dependencies.h3-quinn]
version = "0.0.10"
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.quinn]
version = "0.11"
optional = true

[dependencies.rustls]
version = "0.23"
features = [
    "aws-lc-rs",
    "tls12",
    "logging",
    "std",
]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2"
optional = true

[dependencies.rws-macros]
version = "17"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt-multi-thread",
    "macros",
    "io-util",
    "signal",
]
optional = true

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

[dependencies.url-build-parse]
version = "12.1.0"

[dependencies.url-search-params]
version = "12.0.0"