[package]
edition = "2024"
rust-version = "1.95.0"
name = "rig-http"
version = "0.44.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rig's transport contracts: the HTTP client and websocket traits a transport implements, and the wasm-compatible bounds they are written with."
readme = "README.md"
license = "MIT"
repository = "https://github.com/0xPlaygrounds/rig"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
test-utils = []
websocket = []
[lib]
name = "rig_http"
path = "src/lib.rs"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.futures-timer]
version = "3"
[dependencies.http]
version = "1"
[dependencies.mime]
version = "0.3"
[dependencies.thiserror]
version = "2"
[dependencies.url]
version = "2"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.54"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.futures-timer]
version = "3"
features = ["wasm-bindgen"]
[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
dbg_macro = "forbid"
expect_fun_call = "deny"
expect_used = "deny"
indexing_slicing = "deny"
large_enum_variant = "allow"
panic = "deny"
panic_in_result_fn = "deny"
result_large_err = "allow"
should_implement_trait = "allow"
todo = "forbid"
too_many_arguments = "allow"
type_complexity = "allow"
unimplemented = "forbid"
unreachable = "deny"
unwrap_used = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(rig_loom)"]