Skip to content

Commit

Permalink
docs: enable doc_auto_cfg for docs.rs builds (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb authored Oct 28, 2023
1 parent f5dc8bc commit 7e04550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ serde_json = "1.0"

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

1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]
#![forbid(unsafe_code)]

Expand Down

0 comments on commit 7e04550

Please sign in to comment.