diff --git a/rust/lancedb/src/lib.rs b/rust/lancedb/src/lib.rs index 2fddaa8a1..34232c0f8 100644 --- a/rust/lancedb/src/lib.rs +++ b/rust/lancedb/src/lib.rs @@ -54,6 +54,8 @@ //! You can also use [`ConnectOptions`] to configure the connection to the database. //! //! ```rust +//! # #[cfg(feature = "aws")] +//! # { //! use object_store::aws::AwsCredential; //! # tokio::runtime::Runtime::new().unwrap().block_on(async { //! let db = lancedb::connect("data/sample-lancedb") @@ -66,6 +68,7 @@ //! .await //! .unwrap(); //! # }); +//! # } //! ``` //! //! LanceDB uses [arrow-rs](https://github.com/apache/arrow-rs) to define schema, data types and array itself.