mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-22 06:42:25 +00:00
minor doc patch to help users adjust their Cargo.toml for usage of the allocation module. (#76)
* just pointer to how to set the crate feature helps the Cargo newbies to enable the feature easily while reading the documentation. * Update allocation.rs
This commit is contained in:
parent
e01c6b3a2d
commit
9ea604addb
@ -3,7 +3,10 @@
|
||||
//! Stuff to boost things in the `alloc` crate.
|
||||
//!
|
||||
//! * You must enable the `extern_crate_alloc` feature of `bytemuck` or you will
|
||||
//! not be able to use this module!
|
||||
//! not be able to use this module! This is generally done by adding the
|
||||
//! feature to the dependency in Cargo.toml like so:
|
||||
//! `bytemuck = { version = "VERSION_YOU_ARE_USING", features = ["extern_crate_alloc"]}`
|
||||
|
||||
|
||||
use super::*;
|
||||
use alloc::{
|
||||
|
Loading…
Reference in New Issue
Block a user