[package]
edition = "2024"
rust-version = "1.97.1"
name = "turnloop-http"
version = "0.1.0-beta.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sans-I/O HTTP/1.1 and HTTP/2 client and server protocols"
documentation = "https://docs.rs/turnloop-http"
readme = "README.md"
keywords = [
"networking",
"sans-io",
"http",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/PerryTS/turnloop"
[package.metadata.turnloop-ci]
role = "protocol"
service-group = "http"
integration-tests = [
"interop",
"asynchronous",
"server_allocations",
]
wasi-tests = [
"asynchronous",
"codecs",
"allocations",
]
[features]
default = ["ring"]
pure-rust-zstd = ["dep:turnloop-zstd-decoder"]
ring = ["turnloop-tls/ring"]
turnloop = [
"dep:turnloop-io",
"turnloop-tls/turnloop",
]
[lib]
name = "turnloop_http"
path = "src/lib.rs"
[[example]]
name = "h2spec_server"
path = "examples/h2spec_server.rs"
required-features = ["turnloop"]
[[example]]
name = "https_get"
path = "examples/https_get.rs"
required-features = ["turnloop"]
[[example]]
name = "tls_echo"
path = "examples/tls_echo.rs"
required-features = ["turnloop"]
[[test]]
name = "allocations"
path = "tests/allocations.rs"
harness = false
[[test]]
name = "asynchronous"
path = "tests/asynchronous.rs"
required-features = ["turnloop"]
[[test]]
name = "client"
path = "tests/client.rs"
[[test]]
name = "codecs"
path = "tests/codecs.rs"
[[test]]
name = "http2_settings"
path = "tests/http2_settings.rs"
[[test]]
name = "interop"
path = "tests/interop.rs"
[[test]]
name = "multipart"
path = "tests/multipart.rs"
[[test]]
name = "server_allocations"
path = "tests/server_allocations.rs"
harness = false
required-features = ["turnloop"]
[dependencies.base64]
version = "0.22"
[dependencies.brotli-decompressor]
version = "6.2"
[dependencies.bytes]
version = "1.11"
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dependencies.http]
version = "1"
[dependencies.httparse]
version = "1"
[dependencies.percent-encoding]
version = "2"
[dependencies.turnloop-io]
version = "0.1.0-beta.2"
optional = true
[dependencies.turnloop-tls]
version = "0.1.0-beta.2"
default-features = false
[dependencies.turnloop-zstd-decoder]
version = "0.1.0-beta.2"
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.brotli]
version = "9.1.1"
[dev-dependencies.rcgen]
version = "0.13"
features = [
"ring",
"pem",
]
default-features = false
[target.'cfg(all(target_os = "wasi", target_env = "p3"))'.dependencies.turnloop-io]
version = "0.1.0-beta.2"
features = ["wasi-p3-experimental"]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.zstd]
version = "0.14"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.turnloop-zstd-decoder]
version = "0.1.0-beta.2"
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
'cfg(turnloop_backend, values("kqueue", "epoll", "iocp", "wasi_p2", "wasi_p3", "web", "unsupported"))',
]