Skip to content

Commit 3168216

Browse files
authored
Merge pull request #407 from rust-osdev/doc_auto_cfg
Enable `doc_auto_cfg` on `docs.rs` builds
2 parents 29f6c75 + 5a4910a commit 3168216

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
@@ -32,12 +32,16 @@ nightly = ["const_fn", "step_trait", "abi_x86_interrupt"]
3232
abi_x86_interrupt = []
3333
const_fn = []
3434
step_trait = []
35+
doc_auto_cfg = []
3536

3637
# These features are no longer used and only there for backwards compatibility.
3738
external_asm = []
3839
inline_asm = []
3940
doc_cfg = []
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
@@ -5,6 +5,7 @@
55
#![cfg_attr(feature = "const_fn", feature(const_mut_refs))] // GDT add_entry()
66
#![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))]
77
#![cfg_attr(feature = "step_trait", feature(step_trait))]
8+
#![cfg_attr(feature = "doc_auto_cfg", feature(doc_auto_cfg))]
89
#![warn(missing_docs)]
910
#![deny(missing_debug_implementations)]
1011
#![deny(unsafe_op_in_unsafe_fn)]

0 commit comments

Comments
 (0)