Skip to content

Commit 0544c99

Browse files
authored
docs: add docs.rs flag for feature annotations (#13)
### [`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.
1 parent aa2d61c commit 0544c99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
clippy::cargo_common_metadata,
1111
clippy::multiple_crate_versions
1212
)]
13+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1314
#![doc = include_str!("../README.md")]
1415
mod stdx;
1516

0 commit comments

Comments
 (0)