Skip to content

Commit

Permalink
docs: add docs.rs flag for feature annotations (#13)
Browse files Browse the repository at this point in the history
### [`doc_auto_cfg`: Automatically generate
`#[doc(cfg)]`](https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg)

-   Tracking issue:
[#43781](rust-lang/rust#43781)

`doc_auto_cfg` is an extension to the `#[doc(cfg)]` feature. With it,
you don't need to add `#[doc(cfg(...)]` anymore unless you want to
override the default behaviour.
  • Loading branch information
RoloEdits authored Oct 25, 2024
1 parent aa2d61c commit 0544c99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
clippy::cargo_common_metadata,
clippy::multiple_crate_versions
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]
mod stdx;

Expand Down

0 comments on commit 0544c99

Please sign in to comment.