[package]
name = "http-net"
version = "0.9.2"
rust-version = "1.85"
edition = "2024"
license = "Apache-2.0 OR MIT"
readme = "README.md"
description = "Sans-IO HTTP/1.1 server and client: strict RFC 9112 parsing, smuggling defences, bounded buffers, keep-alive, chunked bodies, upgrades, a blocking std adapter, no third-party dependencies."
keywords = ["http", "server", "client", "sans-io", "protocol"]
categories = ["network-programming", "web-programming", "no-std"]
homepage = "https://github.com/jamesgober/http-net"
repository = "https://github.com/jamesgober/http-net"
documentation = "https://docs.rs/http-net"
authors = ["James Gober <me@jamesgober.com>"]
exclude = ["fuzz/", "garden/", "dev/", ".github/", "scripts/"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "http_net"
path = "src/lib.rs"
[features]
default = ["std"]
std = []
[dependencies]
parse-net = { version = "0.7", default-features = false }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1"
httparse = "1.10"
[[bench]]
name = "bench"
harness = false
[[example]]
name = "localhost"
required-features = ["std"]
[[example]]
name = "serve"
required-features = ["std"]
[[example]]
name = "get"
required-features = ["std"]
[[example]]
name = "soak"
required-features = ["std"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"