Skip to content

Commit 4dc20e6

Browse files
committed
fix: Use Method through reqwest which re-exports http anyway
1 parent 15a0746 commit 4dc20e6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

object_store/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ walkdir = "2"
4545

4646
# Cloud storage support
4747
base64 = { version = "0.21", default-features = false, features = ["std"], optional = true }
48-
http = { version = "0.2", default_features = false, optional = true }
4948
hyper = { version = "0.14", default-features = false, optional = true }
5049
quick-xml = { version = "0.30.0", features = ["serialize", "overlapped-lists"], optional = true }
5150
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
@@ -65,7 +64,7 @@ tokio = { version = "1.25.0", features = ["sync", "macros", "rt", "time", "io-ut
6564
nix = { version = "0.27.1", features = ["fs"] }
6665

6766
[features]
68-
cloud = ["serde", "serde_json", "quick-xml", "dep:http", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"]
67+
cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"]
6968
azure = ["cloud"]
7069
gcp = ["cloud", "rustls-pemfile"]
7170
aws = ["cloud"]

object_store/src/aws/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Signer for AmazonS3 {
232232
/// ```
233233
/// # async fn example() -> Result<(), Box<dyn std::error::Error>> {
234234
/// # use object_store::{aws::AmazonS3Builder, path::Path, signer::Signer};
235-
/// # use http::Method;
235+
/// # use reqwest::Method;
236236
/// # use std::time::Duration;
237237
/// #
238238
/// let region = "us-east-1";

object_store/src/signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
use crate::{path::Path, Result};
2121
use async_trait::async_trait;
22-
use http::Method;
22+
use reqwest::Method;
2323
use std::{fmt, time::Duration};
2424
use url::Url;
2525

0 commit comments

Comments
 (0)