[package]
edition = "2024"
name = "net-cat"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal hand-rolled HTTP/1.1 client over std::net::TcpStream. Plain HTTP in v0; v0.2.0 adds an optional `tls` feature that wires rustls + webpki-roots Mozilla CA bundle so `https://` URLs work via the same `fetch` / `exchange` entry points. No external HTTP crate; framing and parsing are local. No `mut` beyond FFI carve-outs (`TcpStream::read_to_end`, rustls `Stream::new(&mut conn, &mut sock)`). Sixth sub-crate of a Servo-replacement webview runtime targeting Tauri."
readme = "README.md"
keywords = [
"http",
"fetch",
"client",
"minimal",
"type-driven",
]
categories = [
"network-programming",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
[features]
default = []
tls = [
"dep:rustls",
"dep:webpki-roots",
]
[lib]
name = "net_cat"
path = "src/lib.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[dependencies.rustls]
version = "0.23"
features = [
"std",
"ring",
"tls12",
]
optional = true
default-features = false
[dependencies.webpki-roots]
version = "0.26"
optional = true
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
manual_map = "warn"
needless_pass_by_value = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1