[package]
edition = "2024"
rust-version = "1.97.1"
name = "kael_http_client"
version = "0.4.1"
authors = ["Augustus Otu"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP client library for Kael"
homepage = "https://augani.github.io/kael/"
readme = "README.md"
keywords = [
"http",
"client",
"networking",
"kael",
]
categories = [
"web-programming::http-client",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/Augani/kael"
resolver = "2"
[features]
default = ["reqwest"]
reqwest = [
"dep:js-sys",
"dep:reqwest",
"dep:tokio",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:web-sys",
]
test-support = []
[lib]
name = "kael_http_client"
path = "src/http_client.rs"
doctest = true
[dependencies.anyhow]
version = "1.0.86"
[dependencies.bytes]
version = "1.0"
[dependencies.derive_more]
version = "2"
features = ["full"]
[dependencies.futures]
version = "0.3"
[dependencies.http]
version = "1.1"
[dependencies.http-body]
version = "1.0"
[dependencies.parking_lot]
version = "0.12.1"
[dependencies.url]
version = "2.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12.24"
features = [
"charset",
"http2",
"macos-system-configuration",
"rustls-tls-native-roots",
"socks",
"stream",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.52.3"
features = ["rt-multi-thread"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "=0.2.122"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"AbortController",
"AbortSignal",
"DomException",
"Headers",
"ReadableStream",
"ReadableStreamDefaultReader",
"Request",
"RequestInit",
"RequestRedirect",
"Response",
"Window",
]
optional = true
[lints.clippy]
dbg_macro = "deny"
declare_interior_mutable_const = "deny"
disallowed_methods = "deny"
large_enum_variant = "allow"
let_underscore_future = "allow"
nonminimal_bool = "allow"
redundant_clone = "deny"
single_range_in_vec_init = "allow"
todo = "deny"
too_many_arguments = "allow"
type_complexity = "allow"
[lints.clippy.style]
level = "allow"
priority = -1
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0