clarify when allocation related operations are available.

This commit is contained in:
Lokathor 2019-09-21 17:33:36 -06:00
parent dad138dba3
commit 72d3ae2419
3 changed files with 7 additions and 1 deletions

View File

@ -16,3 +16,6 @@ extern_crate_alloc = []
[badges]
appveyor = { repository = "Lokathor/bytemuck" }
travis-ci = { repository = "Lokathor/bytemuck" }
[package.metadata.docs.rs]
all-features = true

View File

@ -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::{

View File

@ -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::*;