From e0b01383d6c346d4aab0491d30b7138815678f38 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Tue, 28 Sep 2021 11:17:10 +0100 Subject: [PATCH] Reqwest default features (#7) * feat: disable default features for reqwest --- CHANGELOG.md | 4 ++++ reqwest-middleware/Cargo.toml | 2 +- reqwest-retry/CHANGELOG.md | 3 +++ reqwest-retry/Cargo.toml | 2 +- reqwest-tracing/CHANGELOG.md | 3 +++ reqwest-tracing/Cargo.toml | 2 +- 6 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6935d13..80325dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,5 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +### Changed +- Disabled default features on `reqwest` + ### Added - New methods on `ClientWithExtensions` and `RequestBuilder` for sending requests with initial extensions. diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml index 3c3f369..4337c7b 100644 --- a/reqwest-middleware/Cargo.toml +++ b/reqwest-middleware/Cargo.toml @@ -15,7 +15,7 @@ anyhow = "1" async-trait = "0.1.51" futures = "0.3" http = "0.2" -reqwest = { version = "0.11", features = ["json", "multipart"] } +reqwest = { version = "0.11", default-features = false, features = ["json", "multipart"] } serde = "1" thiserror = "1" truelayer-extensions = "0.1" diff --git a/reqwest-retry/CHANGELOG.md b/reqwest-retry/CHANGELOG.md index a9ec0cc..cb5548b 100644 --- a/reqwest-retry/CHANGELOG.md +++ b/reqwest-retry/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Disabled default features on `reqwest` + ## [0.1.1] - 2021-09-15 ### Changed - Updated `reqwest-middleware` dependency to `0.1.1`. diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml index fc8556c..2395d7d 100644 --- a/reqwest-retry/Cargo.toml +++ b/reqwest-retry/Cargo.toml @@ -18,7 +18,7 @@ chrono = "0.4" futures = "0.3" http = "0.2" retry-policies = "0.1" -reqwest = "0.11" +reqwest = { version = "0.11", default-features = false } tokio = { version = "1.6", features = ["time"] } tracing = "0.1.26" truelayer-extensions = "0.1" diff --git a/reqwest-tracing/CHANGELOG.md b/reqwest-tracing/CHANGELOG.md index edc8579..bb4cd84 100644 --- a/reqwest-tracing/CHANGELOG.md +++ b/reqwest-tracing/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Disabled default features on `reqwest` + ## [0.1.2] - 2021-09-15 ### Changed - Updated `reqwest-middleware` dependency to `0.1.1`. diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml index 0d5da26..aef5145 100644 --- a/reqwest-tracing/Cargo.toml +++ b/reqwest-tracing/Cargo.toml @@ -19,7 +19,7 @@ opentelemetry_0_16 = ["opentelemetry_0_16_pkg", "tracing-opentelemetry_0_15_pkg" reqwest-middleware = { version = "0.1.1", path = "../reqwest-middleware" } async-trait = "0.1.51" -reqwest = "0.11" +reqwest = { version = "0.11", default-features = false } tokio = { version = "1.6", features = ["time"] } tracing = "0.1.26" truelayer-extensions = "0.1"