mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 00:02:22 +00:00
clarify when allocation related operations are available.
This commit is contained in:
parent
dad138dba3
commit
72d3ae2419
@ -16,3 +16,6 @@ extern_crate_alloc = []
|
||||
[badges]
|
||||
appveyor = { repository = "Lokathor/bytemuck" }
|
||||
travis-ci = { repository = "Lokathor/bytemuck" }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
@ -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::{
|
||||
|
@ -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::*;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user