[package]
edition = "2024"
rust-version = "1.90"
name = "barehttp"
version = "0.1.0"
authors = ["greenstorm5417"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Blocking HTTP/1.1 client for no_std + alloc"
homepage = "https://github.com/Greenstorm5417/barehttp"
documentation = "https://docs.rs/barehttp"
readme = "README.md"
keywords = [
"http",
"client",
"no_std",
"blocking",
"http1",
]
categories = [
"network-programming",
"no-std",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Greenstorm5417/barehttp"
[package.metadata.docs.rs]
all-features = true
[features]
bench-gungraun = []
cookie-jar = []
default = []
gzip = []
zstd = ["dep:ruzstd"]
[lib]
name = "barehttp"
path = "src/lib.rs"
[[example]]
name = "agent"
path = "examples/agent.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "cookies"
path = "examples/cookies.rs"
required-features = ["cookie-jar"]
[[example]]
name = "custom_adapters"
path = "examples/custom_adapters.rs"
[[example]]
name = "gzip"
path = "examples/gzip.rs"
required-features = ["gzip"]
[[test]]
name = "alloc_failure_audit"
path = "tests/alloc_failure_audit.rs"
[[test]]
name = "api_compile"
path = "tests/api_compile.rs"
[[test]]
name = "api_shape"
path = "tests/api_shape.rs"
[[test]]
name = "corpus_runner"
path = "tests/corpus_runner.rs"
[[test]]
name = "differential_gzip"
path = "tests/differential_gzip.rs"
[[test]]
name = "differential_http"
path = "tests/differential_http.rs"
[[test]]
name = "httpbin_test"
path = "tests/httpbin_test.rs"
[[test]]
name = "interop_client"
path = "tests/interop_client.rs"
required-features = ["gzip"]
[[test]]
name = "mock_http_server"
path = "tests/mock_http_server.rs"
[[test]]
name = "network_lifecycle"
path = "tests/network_lifecycle.rs"
[[test]]
name = "panic_freedom"
path = "tests/panic_freedom.rs"
[[test]]
name = "properties_http"
path = "tests/properties_http.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[[bench]]
name = "criterion_adversarial"
path = "benches/criterion_adversarial.rs"
harness = false
[[bench]]
name = "criterion_e2e"
path = "benches/criterion_e2e.rs"
harness = false
[[bench]]
name = "criterion_hot_paths"
path = "benches/criterion_hot_paths.rs"
harness = false
[[bench]]
name = "dhat_e2e"
path = "benches/dhat_e2e.rs"
harness = false
[[bench]]
name = "dhat_gzip"
path = "benches/dhat_gzip.rs"
harness = false
required-features = ["gzip"]
[[bench]]
name = "dhat_parser"
path = "benches/dhat_parser.rs"
harness = false
[[bench]]
name = "gungraun_cachegrind"
path = "benches/gungraun_cachegrind.rs"
harness = false
required-features = ["bench-gungraun"]
[[bench]]
name = "gungraun_callgrind"
path = "benches/gungraun_callgrind.rs"
harness = false
required-features = ["bench-gungraun"]
[dependencies.bytes]
version = "1.12.1"
default-features = false
[dependencies.compact_str]
version = "0.10.0"
default-features = false
[dependencies.hashbrown]
version = "0.17.1"
features = [
"default-hasher",
"equivalent",
]
default-features = false
[dependencies.phf]
version = "0.14.0"
features = ["macros"]
default-features = false
[dependencies.ruzstd]
version = "0.9.0"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.dhat]
version = "0.3.3"
[dev-dependencies.flate2]
version = "1.1.9"
features = ["rust_backend"]
default-features = false
[dev-dependencies.httparse]
version = "1.10"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.trybuild]
version = "1.0"
features = ["diff"]
[target.'cfg(target_os = "linux")'.dev-dependencies.gungraun]
version = "0.19.4"
features = ["client_requests"]
[target."cfg(unix)".dependencies.libc]
version = "0.2.189"
default-features = false
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Networking_WinSock",
"Win32_Foundation",
"Win32_System_SystemInformation",
"Win32_System_IO",
]
default-features = false
[lints.clippy]
iter_not_returning_iterator = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "warn"
ptr_arg = "deny"
return_self_not_must_use = "warn"
should_implement_trait = "warn"
wrong_self_convention = "warn"
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]
[lints.rustdoc]
broken_intra_doc_links = "deny"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"
[profile.bench]
debug = 1