# 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"
name = "touche"
version = "0.0.14"
authors = ["Rodrigo Navarro <rnavarro@rnavarro.com.br>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Synchronous HTTP library"
readme = "README.md"
keywords = [
    "web",
    "http",
    "protocol",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/reu/touche"

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

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

[[example]]
name = "chunked"
path = "examples/chunked.rs"

[[example]]
name = "compress"
path = "examples/compress.rs"

[[example]]
name = "connection"
path = "examples/connection.rs"

[[example]]
name = "echo"
path = "examples/echo.rs"

[[example]]
name = "expect-continue"
path = "examples/expect-continue.rs"

[[example]]
name = "file"
path = "examples/file.rs"

[[example]]
name = "hello-world"
path = "examples/hello-world.rs"

[[example]]
name = "routes"
path = "examples/routes.rs"

[[example]]
name = "rustls"
path = "examples/rustls.rs"

[[example]]
name = "single-thread"
path = "examples/single-thread.rs"

[[example]]
name = "sse"
path = "examples/sse.rs"

[[example]]
name = "sse-chat"
path = "examples/sse-chat.rs"

[[example]]
name = "trailers"
path = "examples/trailers.rs"

[[example]]
name = "tunnel"
path = "examples/tunnel.rs"

[[example]]
name = "unix-socket"
path = "examples/unix-socket.rs"

[[example]]
name = "upgrade"
path = "examples/upgrade.rs"

[[example]]
name = "websocket"
path = "examples/websocket.rs"

[[example]]
name = "websocket-chat"
path = "examples/websocket-chat.rs"

[[example]]
name = "websocket-tokio"
path = "examples/websocket-tokio.rs"

[dependencies.headers]
version = "0.4"

[dependencies.http]
version = "1"

[dependencies.httparse]
version = "1.9"

[dependencies.rustls]
version = "0.23"
features = ["std"]
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0.31"

[dependencies.threadpool]
version = "1.8.1"
optional = true
default-features = false

[dev-dependencies.base64]
version = "0.13.0"

[dev-dependencies.flate2]
version = "1.0.24"

[dev-dependencies.futures]
version = "0.3.28"

[dev-dependencies.indoc]
version = "1.0.6"

[dev-dependencies.md5]
version = "0.7.0"

[dev-dependencies.rustls]
version = "0.23"
features = [
    "std",
    "ring",
]
default-features = false

[dev-dependencies.rustls-pki-types]
version = "1.10"

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

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio-tungstenite]
version = "0.26"

[dev-dependencies.tungstenite]
version = "0.26"

[features]
client = []
default = [
    "server",
    "threadpool",
]
full = [
    "client",
    "server",
]
server = []
threadpool = ["dep:threadpool"]
unix-sockets = []
