[package]
edition = "2024"
name = "barehttp"
version = "0.0.1"
authors = ["greenstorm5417"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A minimal, explicit HTTP client for Rust with no_std support and blocking I/O"
documentation = "https://docs.rs/barehttp"
readme = "README.md"
keywords = [
"http",
"client",
"no_std",
"blocking",
"minimal",
]
categories = [
"network-programming",
"no-std",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Greenstorm5417/barehttp"
[features]
cookie-jar = []
decompression = [
"gzip-decompression",
"zstd-decompression",
]
default = []
gzip-decompression = ["dep:miniz_oxide"]
zstd-decompression = ["dep:ruzstd"]
[lib]
name = "barehttp"
path = "src/lib.rs"
doctest = true
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "configuration"
path = "examples/configuration.rs"
[[example]]
name = "custom_headers"
path = "examples/custom_headers.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[test]]
name = "config_test"
path = "tests/config_test.rs"
[[test]]
name = "httpbin_test"
path = "tests/httpbin_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "method_coverage_test"
path = "tests/method_coverage_test.rs"
[dependencies.miniz_oxide]
version = "0.9"
features = ["with-alloc"]
optional = true
default-features = false
[dependencies.ruzstd]
version = "0.8.2"
features = ["hash"]
optional = true
default-features = false
[dependencies.spin]
version = "0.10"
features = [
"mutex",
"spin_mutex",
]
default-features = false
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Networking_WinSock",
"Win32_Foundation",
"Win32_System_SystemInformation",
]
default-features = false
[profile.bench]
debug = 2
[profile.test]
debug = 2