Skip to content

Commit

Permalink
Implement bulk_delete_request for Azure (#5681)
Browse files Browse the repository at this point in the history
* Implement bulk_delete_request for Azure

* Fix lint and add Azurite bug workaround

* Special 404 error case

* Clippy fix

* Make number of expected headers more conservative and better document invariants

* Use multer for multipart parsing

* Fix clippy

* Fix clippy #2

* Reuse part response buffer

* Make multer conditional to azure feature

* One more HeaderValue::from_static

* Add tests for bulk delete request building and response parsing

* Switch back to manual parsing to avoid multer dependency, other PR suggestions

* Fixes lint
  • Loading branch information
andrebsguedes authored Nov 25, 2024
1 parent 5d992a3 commit 7fc0e87
Show file tree
Hide file tree
Showing 3 changed files with 509 additions and 4 deletions.
5 changes: 4 additions & 1 deletion object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ ring = { version = "0.17", default-features = false, features = ["std"], optiona
rustls-pemfile = { version = "2.0", default-features = false, features = ["std"], optional = true }
tokio = { version = "1.29.0", features = ["sync", "macros", "rt", "time", "io-util"] }
md-5 = { version = "0.10.6", default-features = false, optional = true }
httparse = { version = "1.8.0", default-features = false, features = ["std"], optional = true }

[target.'cfg(target_family="unix")'.dev-dependencies]
nix = { version = "0.29.0", features = ["fs"] }

[features]
cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"]
azure = ["cloud"]
azure = ["cloud", "httparse"]
gcp = ["cloud", "rustls-pemfile"]
aws = ["cloud", "md-5"]
http = ["cloud"]
Expand All @@ -75,6 +76,8 @@ hyper-util = "0.1"
http-body-util = "0.1"
rand = "0.8"
tempfile = "3.1.0"
regex = "1.11.1"
http = "1.1.0"

[[test]]
name = "get_range_file"
Expand Down
Loading

0 comments on commit 7fc0e87

Please sign in to comment.