Skip to content

Commit

Permalink
Change feature annotations in lib.rs to use doc_auto_cfg.
Browse files Browse the repository at this point in the history
Signed-off-by: Jackson Brim <jackson.cr.brim@gmail.com>
  • Loading branch information
jacksonbrim committed Mar 20, 2024
1 parent b830a7a commit 3f3430c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#![deny(clippy::doc_markdown)]
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, allow(unused_attributes))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

// We only support 64bit. Fail build when attempting to build other targets
#[cfg(not(target_pointer_width = "64"))]
Expand All @@ -30,7 +29,6 @@ pub mod address;
pub use address::{Address, AddressValue};

#[cfg(feature = "backend-atomic")]
#[cfg_attr(docsrs, doc(cfg(feature = "backend-atomic")))]
pub mod atomic;
#[cfg(feature = "backend-atomic")]
pub use atomic::{GuestMemoryAtomic, GuestMemoryLoadGuard};
Expand Down Expand Up @@ -65,7 +63,6 @@ mod mmap_xen;
mod mmap_windows;

#[cfg(feature = "backend-mmap")]
#[cfg_attr(docsrs, doc(cfg(feature = "backend-mmap")))]
pub mod mmap;

#[cfg(feature = "backend-mmap")]
Expand Down

0 comments on commit 3f3430c

Please sign in to comment.