Skip to content

Commit

Permalink
refactor: replace own Extensions by http version
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Feb 27, 2025
1 parent 90d9786 commit 0915500
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 247 deletions.
4 changes: 2 additions & 2 deletions object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async-trait = "0.1.53"
bytes = "1.0"
chrono = { version = "0.4.34", default-features = false, features = ["clock"] }
futures = "0.3"
http = "1.2.0"
humantime = "2.1"
itertools = "0.14.0"
parking_lot = { version = "0.12" }
Expand All @@ -46,7 +47,6 @@ walkdir = { version = "2", optional = true }
# Cloud storage support
base64 = { version = "0.22", default-features = false, features = ["std"], optional = true }
form_urlencoded = { version = "1.2", optional = true }
http = { version = "1.2.0", optional = true }
http-body-util = { version = "0.1", optional = true }
httparse = { version = "1.8.0", default-features = false, features = ["std"], optional = true }
hyper = { version = "1.2", default-features = false, optional = true }
Expand All @@ -66,7 +66,7 @@ nix = { version = "0.29.0", features = ["fs"] }

[features]
default = ["fs"]
cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/stream", "chrono/serde", "base64", "rand", "ring", "dep:http", "http-body-util", "form_urlencoded", "serde_urlencoded"]
cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/stream", "chrono/serde", "base64", "rand", "ring", "http-body-util", "form_urlencoded", "serde_urlencoded"]
azure = ["cloud", "httparse"]
fs = ["walkdir"]
gcp = ["cloud", "rustls-pemfile"]
Expand Down
243 changes: 0 additions & 243 deletions object_store/src/extensions.rs

This file was deleted.

3 changes: 1 addition & 2 deletions object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ pub mod buffered;
#[cfg(not(target_arch = "wasm32"))]
pub mod chunked;
pub mod delimited;
pub mod extensions;
#[cfg(feature = "gcp")]
pub mod gcp;
#[cfg(feature = "http")]
Expand Down Expand Up @@ -972,7 +971,7 @@ pub struct GetOptions {
/// that need to pass context-specific information (like tracing spans) via trait methods.
///
/// These extensions are ignored entirely by backends offered through this crate.
pub extensions: extensions::Extensions,
pub extensions: ::http::Extensions,
}

impl GetOptions {
Expand Down

0 comments on commit 0915500

Please sign in to comment.