[package]
edition = "2024"
rust-version = "1.85"
name = "http-net"
version = "0.9.1"
authors = ["James Gober <me@jamesgober.com>"]
build = false
exclude = [
"fuzz/",
"garden/",
"dev/",
".github/",
"scripts/",
]
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 third-party 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 = "early_hints"
path = "examples/early_hints.rs"
[[example]]
name = "get"
path = "examples/get.rs"
required-features = ["std"]
[[example]]
name = "localhost"
path = "examples/localhost.rs"
required-features = ["std"]
[[example]]
name = "passport"
path = "examples/passport.rs"
[[example]]
name = "pipelined_client"
path = "examples/pipelined_client.rs"
[[example]]
name = "proxy_forward"
path = "examples/proxy_forward.rs"
[[example]]
name = "sans_io"
path = "examples/sans_io.rs"
[[example]]
name = "serve"
path = "examples/serve.rs"
required-features = ["std"]
[[example]]
name = "soak"
path = "examples/soak.rs"
required-features = ["std"]
[[example]]
name = "trailers"
path = "examples/trailers.rs"
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "connection_control"
path = "tests/connection_control.rs"
[[test]]
name = "forwarding"
path = "tests/forwarding.rs"
[[test]]
name = "head_only"
path = "tests/head_only.rs"
[[test]]
name = "interim"
path = "tests/interim.rs"
[[test]]
name = "linearity"
path = "tests/linearity.rs"
[[test]]
name = "localhost"
path = "tests/localhost.rs"
[[test]]
name = "pipelining_reuse"
path = "tests/pipelining_reuse.rs"
[[test]]
name = "prop_httparse"
path = "tests/prop_httparse.rs"
[[test]]
name = "prop_httparse_response"
path = "tests/prop_httparse_response.rs"
[[test]]
name = "prop_reference"
path = "tests/prop_reference.rs"
[[test]]
name = "prop_roundtrip"
path = "tests/prop_roundtrip.rs"
[[test]]
name = "prop_stateless"
path = "tests/prop_stateless.rs"
[[test]]
name = "prop_writer"
path = "tests/prop_writer.rs"
[[test]]
name = "redaction"
path = "tests/redaction.rs"
[[test]]
name = "rfc_cases"
path = "tests/rfc_cases.rs"
[[test]]
name = "smuggling"
path = "tests/smuggling.rs"
[[test]]
name = "trailers"
path = "tests/trailers.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies.parse-net]
version = "0.7"
default-features = false
[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"