diff --git a/Cargo.toml b/Cargo.toml index 00d765d..9ca7523 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,6 @@ extern_crate_alloc = [] [badges] appveyor = { repository = "Lokathor/bytemuck" } travis-ci = { repository = "Lokathor/bytemuck" } + +[package.metadata.docs.rs] +all-features = true diff --git a/src/allocation.rs b/src/allocation.rs index 1b1f38f..630a480 100644 --- a/src/allocation.rs +++ b/src/allocation.rs @@ -1,4 +1,7 @@ //! Stuff to boost things in the `alloc` crate. +//! +//! You must use the crate with the `extern_crate_alloc` feature for the content +//! in this module to be compiled in! use super::*; use alloc::{ diff --git a/src/lib.rs b/src/lib.rs index 080848b..43ff8db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ macro_rules! impl_unsafe_marker_for_array { #[cfg(feature = "extern_crate_alloc")] extern crate alloc; #[cfg(feature = "extern_crate_alloc")] -mod allocation; +pub mod allocation; #[cfg(feature = "extern_crate_alloc")] pub use allocation::*;