# 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"
name = "net-cat"
version = "0.3.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. v0.3.0 adds chunked-transfer decoding (`Transfer-Encoding: chunked` responses now yield the correct decoded body) and a redirect follower in `fetch` (RFC 7231 §6.4: 301/302/303 downgrade non-GET/HEAD to GET and drop the body; 307/308 preserve method + body; cross-origin hops strip `Cookie` and `Authorization`; capped at `MAX_REDIRECTS = 10` hops). Optional `tls` feature still wires rustls + webpki-roots for `https://` URLs. No external HTTP crate. 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