Skip to content

Commit

Permalink
Merge pull request #156 from poliorcetics/ab/push-zqqplnmmzwvy
Browse files Browse the repository at this point in the history
doc: show required features on items on docs.rs
  • Loading branch information
zesterer authored Oct 15, 2024
2 parents b1ebfca + 8a56397 commit 4df63f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 4df63f1

Please sign in to comment.