Skip to content

Commit 7e04550

Browse files
authored
docs: enable doc_auto_cfg for docs.rs builds (#36)
1 parent f5dc8bc commit 7e04550

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ serde_json = "1.0"
3232

3333
[package.metadata.docs.rs]
3434
all-features = true
35+
rustdoc-args = ["--cfg", "docsrs"]
3536

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![doc = include_str!("../README.md")]
2+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23
#![cfg_attr(not(feature = "std"), no_std)]
34
#![forbid(unsafe_code)]
45

0 commit comments

Comments
 (0)