# 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.63"
name = "mendes"
version = "0.8.0"
description = "Rust web toolkit for impatient perfectionists"
documentation = "https://docs.rs/mendes"
readme = "README.md"
keywords = [
    "web",
    "http",
    "server",
    "async",
]
categories = [
    "asynchronous",
    "web-programming::http-server",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/djc/mendes"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[dependencies.async-compression]
version = "0.4.0"
features = ["tokio"]
optional = true

[dependencies.async-trait]
version = "0.1.24"
optional = true

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

[dependencies.chrono]
version = "0.4.23"
features = ["serde"]
optional = true

[dependencies.data-encoding]
version = "2.1.2"
optional = true

[dependencies.futures-util]
version = "0.3.7"
optional = true
default-features = false

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

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

[dependencies.httparse]
version = "1.3.4"
optional = true

[dependencies.hyper]
version = "0.14.1"
features = [
    "http1",
    "http2",
    "runtime",
    "server",
    "stream",
]
optional = true

[dependencies.memchr]
version = "2.5"
optional = true

[dependencies.mendes-macros]
version = "0.4"
optional = true

[dependencies.mime_guess]
version = "2.0.3"
optional = true
default-features = false

[dependencies.percent-encoding]
version = "2.1.0"
optional = true
default-features = false

[dependencies.pin-utils]
version = "0.1.0"
optional = true

[dependencies.postcard]
version = "1.0.6"
features = ["use-std"]
optional = true
default-features = false

[dependencies.ring]
version = "0.17.0"
optional = true

[dependencies.serde]
version = "1.0.104"
optional = true

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

[dependencies.serde_urlencoded]
version = "0.7.0"
optional = true

[dependencies.thiserror]
version = "1.0.20"

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

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

[dependencies.tracing]
version = "0.1.26"
optional = true

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

[features]
application = [
    "async-trait",
    "http",
    "mendes-macros",
    "percent-encoding",
    "serde",
    "serde_urlencoded",
]
brotli = [
    "compression",
    "async-compression/brotli",
]
compression = [
    "async-compression",
    "futures-util",
    "tokio-util",
]
cookies = [
    "chrono",
    "http",
    "data-encoding",
    "key",
    "postcard",
    "mendes-macros",
    "serde-derive",
]
default = ["application"]
deflate = [
    "compression",
    "async-compression/deflate",
]
forms = [
    "mendes-macros",
    "serde_urlencoded",
    "serde-derive",
]
gzip = [
    "compression",
    "async-compression/gzip",
]
json = ["serde_json"]
key = [
    "data-encoding",
    "ring",
]
serde-derive = ["serde/derive"]
static = [
    "application",
    "tokio/fs",
    "mime_guess",
    "http",
]
uploads = [
    "http",
    "httparse",
    "memchr",
]
with-http-body = [
    "http-body",
    "bytes",
    "pin-utils",
]
with-hyper = [
    "application",
    "async-trait",
    "bytes",
    "futures-util",
    "futures-util/std",
    "http",
    "hyper",
]
