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

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

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

[[bench]]
name = "file_explorer"
harness = false
[dependencies.anyhow]
version = "1.0.45"

[dependencies.async-stream]
version = "0.3.2"

[dependencies.chrono]
version = "0.4.19"

[dependencies.dhat]
version = "0.2.2"
optional = true

[dependencies.flate2]
version = "1.0.22"

[dependencies.futures]
version = "0.3.17"

[dependencies.handlebars]
version = "4.1.4"

[dependencies.http]
version = "0.2.5"

[dependencies.http-auth-basic]
version = "0.3.1"

[dependencies.hyper]
version = "0.14.14"
features = ["http1", "server", "stream", "tcp"]

[dependencies.local-ip-address]
version = "0.4.4"

[dependencies.mime_guess]
version = "2.0.3"

[dependencies.rustls]
version = "0.20.2"

[dependencies.rustls-pemfile]
version = "0.2.1"

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

[dependencies.serde_json]
version = "1.0.70"

[dependencies.structopt]
version = "0.3.25"
default-features = false

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

[dependencies.tokio-rustls]
version = "0.23.1"

[dependencies.toml]
version = "0.5.8"
[dev-dependencies.criterion]
version = "0.3.5"
features = ["async_tokio", "html_reports"]

[dev-dependencies.hyper]
version = "0.14.14"
features = ["client"]

[dev-dependencies.lazy_static]
version = "1.4.0"

[dev-dependencies.tokio]
version = "1.13.0"
features = ["full"]

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