[package]
name = "http-server"
version = "0.5.7"
authors = ["Esteban Borai <estebanborai@gmail.com>"]
edition = "2018"
description = "Simple and configurable command-line HTTP server"
repository = "https://github.com/EstebanBorai/http-server"
categories = ["web-programming", "web-programming::http-server"]
keywords = ["configurable", "http", "server", "serve", "static"]
license = "MIT OR Apache-2.0"
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

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

[[bin]]
name = "http-server"
path = "src/bin/main.rs"

[[bench]]
name = "file_explorer"
harness = false

[features]
dhat-profiling = ["dhat"]

[dependencies]
anyhow = "1.0.45"
async-stream = "0.3.2"
chrono = "0.4.19"
dhat = { version = "0.2.2", optional = true }
futures = "0.3.17"
flate2 = "1.0.22"
http = "0.2.5"
http-auth-basic = "0.3.1"
handlebars = "4.1.4"
hyper = { version = "0.14.14", features = ["http1", "server", "stream", "tcp"] }
local-ip-address = "0.4.4"
mime_guess = "2.0.3"
rustls = "0.20.2"
rustls-pemfile = "0.2.1"
tokio = { version = "1.13.0", features = ["fs", "rt-multi-thread", "signal", "macros"] }
tokio-rustls = "0.23.1"
toml = "0.5.8"
serde = { version = "1.0.130", features = ["derive"] }
serde_json = "1.0.70"
structopt = { version = "0.3.25", default-features = false }

[dev-dependencies]
criterion = { version = "0.3.5", features = ["async_tokio", "html_reports"] }
hyper = { version = "0.14.14", features = ["client"] }
tokio = { version = "1.13.0", features = ["full"] }
lazy_static = "1.4.0"

[profile.release]
debug = 1
