reqwest-rust
Installation
SKILL.md
Reqwest Rust
Use these conventions for Rust HTTP clients built with seanmonstar/reqwest.
Source Baseline
- Prefer released docs from
docs.rs/reqwest, crates.io, and the matching GitHub release over older snippets. - Current docs.rs baseline checked for this skill:
reqwest 0.13.3. - Reqwest is an ergonomic, batteries-included HTTP client with async and blocking APIs.
- The async API requires Tokio. The blocking API is feature-gated and must not run directly inside an async runtime.
- Reqwest implements Tower
Service<Request>forClient, but ordinary code usually usesClientrequest builders. - WASM support exists, but this skill is for native Rust clients; WASM disables or changes several features including TLS, cookies, blocking, and some builder methods.
Cargo
For native async clients, prefer explicit TLS selection. Cargo features are additive, so default-features = false is the reliable way to avoid an unexpected default TLS backend from this crate declaration.