diff --git a/Cargo.toml b/Cargo.toml index 40d26f4..855ca6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,10 @@ exclude = [ "/misc", ] +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [features] # Use a spinlock internally (may be faster on some platforms) spin = [] diff --git a/src/lib.rs b/src/lib.rs index 1e11f08..73a55bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,6 +25,7 @@ //! assert_eq!(rx.recv().unwrap(), 42); //! ``` +#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![deny(missing_docs)] #[cfg(feature = "select")]