File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 33set -o errexit
44
55. ~ /.cargo/env
6- cargo +nightly rustdoc -p bson --all-features -- --cfg docsrs -D warnings
6+ cargo rustdoc -- -D warnings
7+ cargo rustdoc --no-default-features --features async-std-runtime -- -D warnings
8+ cargo rustdoc --no-default-features --features sync -- -D warnings
Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ pub enum AuthMechanism {
8282 ///
8383 /// Note: Only server versions 4.4+ support AWS authentication. Additionally, the driver only
8484 /// supports AWS authentication with the tokio runtime.
85- #[ cfg( feature = "aws-auth" ) ]
85+ #[ cfg( any( feature = "aws-auth" , docsrs) ) ]
86+ #[ cfg_attr( docsrs, doc( cfg( feature = "aws-auth" ) ) ) ]
8687 MongoDbAws ,
8788}
8889
Original file line number Diff line number Diff line change 115115//! # Ok(()) }
116116//! ```
117117//!
118- //! A [`Collection`] can be parameterized with any type that implements the
118+ //! A [`Collection`](struct.Collection.html) can be parameterized with any type that implements the
119119//! `Serialize` and `Deserialize` traits from the [`serde`](https://serde.rs/) crate,
120120//! not just `Document`:
121121//!
155155//! ```
156156//!
157157//! ### Finding documents in a collection
158- //! Results from queries are generally returned via [`Cursor`], a struct which streams the results
159- //! back from the server as requested. The [`Cursor`] type implements the
158+ //! Results from queries are generally returned via [`Cursor`](struct.Cursor.html) , a struct which streams
159+ //! the results back from the server as requested. The [`Cursor`](struct.Cursor.html) type implements the
160160//! [`Stream`](https://docs.rs/futures/latest/futures/stream/trait.Stream.html) trait from
161161//! the [`futures`](https://crates.io/crates/futures) crate, and in order to access its streaming
162162//! functionality you need to import at least one of the
You can’t perform that action at this time.
0 commit comments