Skip to content

Commit

Permalink
chore(doc): Support doc_auto_cfg for docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Jul 12, 2024
1 parent 227b5c0 commit 94b229e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ exclude = [
".travis.yml", ".gitignore", "test-data/**"
]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]

[badges]
maintenance = { status = "passively-maintained" }

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
//! ```
#![cfg_attr(feature = "bench", feature(test))] // Unstable libraries
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(clippy::pedantic)]
#![allow(
clippy::must_use_candidate, // This is just annoying.
Expand Down

0 comments on commit 94b229e

Please sign in to comment.