From ba39bafdf4b530f7272d3ac5ac12500f5a86d5d7 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Wed, 11 Oct 2023 09:44:45 -0400 Subject: [PATCH] fix: Use Method through reqwest which re-exports http anyway --- object_store/Cargo.toml | 3 +-- object_store/src/signer.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml index 03f09e2ccc19..7928648d170f 100644 --- a/object_store/Cargo.toml +++ b/object_store/Cargo.toml @@ -45,7 +45,6 @@ walkdir = "2" # Cloud storage support base64 = { version = "0.21", default-features = false, features = ["std"], optional = true } -http = { version = "0.2", default_features = false, optional = true } hyper = { version = "0.14", default-features = false, optional = true } quick-xml = { version = "0.30.0", features = ["serialize", "overlapped-lists"], optional = true } 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 nix = { version = "0.27.1", features = ["fs"] } [features] -cloud = ["serde", "serde_json", "quick-xml", "dep:http", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"] +cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"] azure = ["cloud"] gcp = ["cloud", "rustls-pemfile"] aws = ["cloud"] diff --git a/object_store/src/signer.rs b/object_store/src/signer.rs index 76b33919018b..f1f35debe053 100644 --- a/object_store/src/signer.rs +++ b/object_store/src/signer.rs @@ -19,7 +19,7 @@ use crate::{path::Path, Result}; use async_trait::async_trait; -use http::Method; +use reqwest::Method; use std::{fmt, time::Duration}; use url::Url;