diff --git a/Cargo.lock b/Cargo.lock index dfb4415..f83827d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ dependencies = [ [[package]] name = "lazy-heap" -version = "0.1.1-alpha.6" +version = "0.1.1-alpha.7" dependencies = [ "slab_allocator_rs", "spin", diff --git a/Cargo.toml b/Cargo.toml index ec89885..5444067 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "lazy-heap" description = "A lazy heap allocator for Rust based on `slab_allocator_rs`." repository = "https://github.com/kennystrawnmusic/lazy-heap" -version = "0.1.1-alpha.6" +version = "0.1.1-alpha.7" edition = "2021" license = "LGPL-3.0-or-later" categories = [ "no-std", "memory-management" ] diff --git a/src/lib.rs b/src/lib.rs index b2db43c..957098b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,7 @@ //! //! ```rust //! use lazy_heap::LazyHeap; +//! //! #[global_allocator] //! pub static ALLOC: LazyHeap = LazyHeap::new(|| { //! // allocator initialization code goes here