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:
Gauthier Segay 2021-10-15 21:45:16 +02:00 committed by GitHub
parent e01c6b3a2d
commit 9ea604addb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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