[package]
edition = "2024"
rust-version = "1.85"
name = "http-net"
version = "0.3.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
exclude = [
"fuzz/",
"dev/",
".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
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 dependencies."
homepage = "https://github.com/jamesgober/http-net"
documentation = "https://docs.rs/http-net"
readme = "README.md"
keywords = [
"http",
"server",
"client",
"sans-io",
"protocol",
]
categories = [
"network-programming",
"web-programming",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/http-net"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "http_net"
path = "src/lib.rs"
[[example]]
name = "get"
path = "examples/get.rs"
required-features = ["std"]
[[example]]
name = "localhost"
path = "examples/localhost.rs"
required-features = ["std"]
[[example]]
name = "sans_io"
path = "examples/sans_io.rs"
[[example]]
name = "serve"
path = "examples/serve.rs"
required-features = ["std"]
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "localhost"
path = "tests/localhost.rs"
[[test]]
name = "prop_httparse"
path = "tests/prop_httparse.rs"
[[test]]
name = "prop_reference"
path = "tests/prop_reference.rs"
[[test]]
name = "prop_roundtrip"
path = "tests/prop_roundtrip.rs"
[[test]]
name = "redaction"
path = "tests/redaction.rs"
[[test]]
name = "rfc_cases"
path = "tests/rfc_cases.rs"
[[test]]
name = "smuggling"
path = "tests/smuggling.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.httparse]
version = "1.10"
[dev-dependencies.proptest]
version = "1"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"