http-net 0.5.0

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.
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "http-net"
version = "0.5.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 = "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 = "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 = "interim"
path = "tests/interim.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_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]

[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"