From d0d2b47abe38fc989314da8b432305436bd082b5 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 19 Mar 2024 11:06:51 -0400 Subject: [PATCH] docs: add note about sponsors/support --- README.md | 28 +++++++++------------------- src/lib.rs | 12 +++++++++++- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index cca9bc92c..614b10a0d 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ An ergonomic, batteries-included HTTP Client for Rust. +- Async and blocking `Client`s - Plain bodies, JSON, urlencoded, multipart - Customizable redirect policy - HTTP Proxies - HTTPS via system-native TLS (or optionally, rustls) - Cookie Store - WASM -- [Changelog](CHANGELOG.md) ## Example @@ -43,25 +43,9 @@ async fn main() -> Result<(), Box> { } ``` -## Blocking Client +## Commercial Support -There is an optional "blocking" client API that can be enabled: - -```toml -[dependencies] -reqwest = { version = "0.11", features = ["blocking", "json"] } -``` - -```rust,no_run -use std::collections::HashMap; - -fn main() -> Result<(), Box> { - let resp = reqwest::blocking::get("https://httpbin.org/ip")? - .json::>()?; - println!("{resp:#?}"); - Ok(()) -} -``` +For private advice, support, reviews, access to the maintainer, and the like, reach out for [commercial support][sponsor]. ## Requirements @@ -93,3 +77,9 @@ Licensed under either of Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. + +## Sponsors + +Support this project by becoming a [sponsor][]. + +[sponsor]: https://seanmonstar.com/sponsor diff --git a/src/lib.rs b/src/lib.rs index 62298db00..25965b181 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,6 +27,11 @@ //! - [The Rust Cookbook](https://rust-lang-nursery.github.io/rust-cookbook/web/clients.html) //! - [Reqwest Repository Examples](https://github.com/seanmonstar/reqwest/tree/master/examples) //! +//! ## Commercial Support +//! +//! For private advice, support, reviews, access to the maintainer, and the +//! like, reach out for [commercial support][sponsor]. +//! //! ## Making a GET request //! //! For a single request, you can use the [`get`][get] shortcut method. @@ -215,7 +220,11 @@ //! RUSTFLAGS="--cfg reqwest_unstable" cargo build //! ``` //! -//! [hyper]: http://hyper.rs +//! ## Sponsors +//! +//! Support this project by becoming a [sponsor][]. +//! +//! [hyper]: https://hyper.rs //! [blocking]: ./blocking/index.html //! [client]: ./struct.Client.html //! [response]: ./struct.Response.html @@ -225,6 +234,7 @@ //! [redirect]: crate::redirect //! [Proxy]: ./struct.Proxy.html //! [cargo-features]: https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section +//! [sponsor]: https://seanmonstar.com/sponsor #[cfg(all(feature = "http3", not(reqwest_unstable)))] compile_error!(