Skip to content

Commit

Permalink
Merge pull request #407 from rust-osdev/doc_auto_cfg
Browse files Browse the repository at this point in the history
Enable `doc_auto_cfg` on `docs.rs` builds
  • Loading branch information
phil-opp committed Mar 7, 2023
2 parents 29f6c75 + 5a4910a commit 3168216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ nightly = ["const_fn", "step_trait", "abi_x86_interrupt"]
abi_x86_interrupt = []
const_fn = []
step_trait = []
doc_auto_cfg = []

# These features are no longer used and only there for backwards compatibility.
external_asm = []
inline_asm = []
doc_cfg = []

[package.metadata.docs.rs]
all-features = true

[package.metadata.release]
dev-version = false
pre-release-replacements = [
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#![cfg_attr(feature = "const_fn", feature(const_mut_refs))] // GDT add_entry()
#![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))]
#![cfg_attr(feature = "step_trait", feature(step_trait))]
#![cfg_attr(feature = "doc_auto_cfg", feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![deny(missing_debug_implementations)]
#![deny(unsafe_op_in_unsafe_fn)]
Expand Down

0 comments on commit 3168216

Please sign in to comment.