Skip to content

Commit 82882b0

Browse files
authored
Merge pull request #55 from mkroening/doc_auto_cfg
Enable all features and `doc_auto_cfg` on docs.rs
2 parents 279d80c + 25e83e2 commit 82882b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pre-release-replacements = [
3030
pre-release-commit-message = "Release version {{version}}"
3131

3232
[package.metadata.docs.rs]
33-
features = ["unstable"]
33+
all-features = true
34+
rustdoc-args = ["--cfg", "docsrs"]
3435

3536
[workspace]
3637
members = ["volatile-macro"]

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#![cfg_attr(feature = "very_unstable", feature(unboxed_closures))]
4040
#![cfg_attr(feature = "very_unstable", feature(fn_traits))]
4141
#![cfg_attr(feature = "very_unstable", feature(effects))]
42+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
4243
#![warn(missing_docs)]
4344
#![deny(unsafe_op_in_unsafe_fn)]
4445
#![doc(test(attr(deny(warnings))))]

0 commit comments

Comments
 (0)