Registry / utility / embedded-alloc

embedded-alloc

JSON →
library0.7.0rscratesunverified

A heap allocator for embedded systems.

utilityother
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use embedded_alloc::Heap;

Initializes a global heap allocator for embedded systems.

use embedded_alloc::Heap; #[global_allocator] static HEAP: Heap = Heap::empty(); fn main() { unsafe { HEAP.init(4096) } let _vec = vec![1, 2, 3]; println!("Allocated vector"); }
Debug
Known footguns
gotchaRequires unsafe code to initialize the heap.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
bingbot
1
Resources