Skip to content

Commit dd9f9bf

Browse files
committed
Enable doc_auto_cfg on docs.rs builds
1 parent 642956d commit dd9f9bf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ abi_x86_interrupt = []
3333
const_fn = []
3434
step_trait = []
3535
doc_cfg = []
36+
doc_auto_cfg = []
3637

3738
# These features are no longer used and only there for backwards compatibility.
3839
external_asm = []
3940
inline_asm = []
4041

42+
[package.metadata.docs.rs]
43+
all-features = true
44+
4145
[package.metadata.release]
4246
dev-version = false
4347
pre-release-replacements = [

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))]
77
#![cfg_attr(feature = "step_trait", feature(step_trait))]
88
#![cfg_attr(feature = "doc_cfg", feature(doc_cfg))]
9+
#![cfg_attr(feature = "doc_auto_cfg", feature(doc_auto_cfg))]
910
#![warn(missing_docs)]
1011
#![deny(missing_debug_implementations)]
1112
#![deny(unsafe_op_in_unsafe_fn)]

0 commit comments

Comments
 (0)