d 0.1.0

D is a simple standalone httpd.
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 = "2024"
rust-version = "1.85"
name = "d"
version = "0.1.0"
authors = ["Liu Chong <mail@liuchong.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "D is a simple standalone httpd."
homepage = "https://github.com/liuchong/d"
documentation = "https://docs.rs/d"
readme = "README.md"
keywords = [
    "d",
    "httpd",
    "http-server",
    "http",
    "server",
]
license-file = "LICENSE"
repository = "https://github.com/liuchong/d"

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

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

[dependencies.axum]
version = "0.8"

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"

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

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

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

[dependencies.infer]
version = "0.19"

[dependencies.mime_guess]
version = "2"

[dependencies.percent-encoding]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = ["formatting"]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "signal",
    "net",
]

[dependencies.tokio-util]
version = "0.7"
features = [
    "io",
    "codec",
]

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "fs",
    "trace",
    "compression-gzip",
    "compression-deflate",
    "compression-br",
    "cors",
]

[dependencies.tracing]
version = "0.1"

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

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