This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 5788c69958 object_store: fix failing doctest with default features
(#5161)
5788c69958 is described below
commit 5788c69958f99694afb39e13f199f6e2b3999a9a
Author: Jeffrey <[email protected]>
AuthorDate: Tue Dec 5 21:03:26 2023 +1100
object_store: fix failing doctest with default features (#5161)
---
object_store/Cargo.toml | 4 ++--
object_store/src/lib.rs | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml
index 2f5157c40e..d5cf91c332 100644
--- a/object_store/Cargo.toml
+++ b/object_store/Cargo.toml
@@ -67,10 +67,10 @@ http = ["cloud"]
tls-webpki-roots = ["reqwest?/rustls-tls-webpki-roots"]
[dev-dependencies] # In alphabetical order
-tempfile = "3.1.0"
futures-test = "0.3"
-rand = "0.8"
hyper = { version = "0.14.24", features = ["server"] }
+rand = "0.8"
+tempfile = "3.1.0"
[[test]]
name = "get_range_file"
diff --git a/object_store/src/lib.rs b/object_store/src/lib.rs
index 5c5c70de3a..3a841667ff 100644
--- a/object_store/src/lib.rs
+++ b/object_store/src/lib.rs
@@ -119,6 +119,7 @@
//! application complexity.
//!
//! ```no_run
+//! # #[cfg(feature = "aws")] {
//! # use url::Url;
//! # use object_store::{parse_url, parse_url_opts};
//! # use object_store::aws::{AmazonS3, AmazonS3Builder};
@@ -140,6 +141,7 @@
//! let url =
Url::parse("https://ACCOUNT_ID.r2.cloudflarestorage.com/bucket/path").unwrap();
//! let (store, path) = parse_url(&url).unwrap();
//! assert_eq!(path.as_ref(), "path");
+//! # }
//! ```
//!
//! [PyArrow FileSystem]:
https://arrow.apache.org/docs/python/generated/pyarrow.fs.FileSystem.html#pyarrow.fs.FileSystem.from_uri