Skip to content

Commit 10ee2ee

Browse files
robjtedepaupino
andauthored
Auto-document feature guarded items (#634)
Co-authored-by: Paul Mason <[email protected]>
1 parent d323dd4 commit 10ee2ee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ version = "1.33.1"
1616

1717
[package.metadata.docs.rs]
1818
all-features = true
19+
rustdoc-args = ["--cfg", "docsrs"]
1920

2021
[dependencies]
2122
arbitrary = { default-features = false, optional = true, version = "1.0" }

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![forbid(unsafe_code)]
33
#![deny(clippy::print_stdout, clippy::print_stderr)]
44
#![cfg_attr(not(feature = "std"), no_std)]
5+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
56
extern crate alloc;
67

78
mod constants;

0 commit comments

Comments
 (0)