From 524e044fd72fff23c5f764a8a8472f8db2fc1ea8 Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Thu, 27 Jun 2024 05:35:44 +1000 Subject: [PATCH] Re-export reqwest crate (#158) * Re-export reqwest crate In a large project, it's not unheard of for multiple mutually-incompatible versions of a major crate like `reqwest` to end up in the mix. By re-exporting the version of `reqwest` used by `reqwest-middleware`, we can be sure we're referring to the *correct* `reqwest`, rather than some other, incompatible, `reqwest`. * Update CHANGELOG.md --------- Co-authored-by: Ethan Brierley --- CHANGELOG.md | 1 + reqwest-middleware/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b042cf..30e5959 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added support for `opentelemetry` version `0.23`. +- Added re-export of `reqwest`. - `http2`, `rustls-tls`, and `charset` features, which simply enable those features in `reqwest`. ## [0.3.1] diff --git a/reqwest-middleware/src/lib.rs b/reqwest-middleware/src/lib.rs index 1b21173..85959d1 100644 --- a/reqwest-middleware/src/lib.rs +++ b/reqwest-middleware/src/lib.rs @@ -58,3 +58,4 @@ pub use client::{ClientBuilder, ClientWithMiddleware, RequestBuilder}; pub use error::{Error, Result}; pub use middleware::{Middleware, Next}; pub use req_init::{Extension, RequestInitialiser}; +pub use reqwest;