Skip to content

Commit

Permalink
docs(serde-spanned): display feature guarded items on docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 30, 2023
1 parent 55d44e7 commit 08ad143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/serde_spanned/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ pre-release-replacements = [
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD", exactly=1},
]

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

[dependencies]
serde = { version = "1.0.145", optional = true }
1 change: 1 addition & 0 deletions crates/serde_spanned/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// and lets them ensure that there is indeed no unsafe code as opposed to
// something they couldn't detect (e.g. unsafe added via macro expansion, etc).
#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

mod spanned;
pub use crate::spanned::Spanned;
Expand Down

0 comments on commit 08ad143

Please sign in to comment.