1 unstable release
| 0.1.0 | Jun 18, 2022 |
|---|
#531 in Memory management
14KB
334 lines
faux_alloc
A fake "allocator".
lib.rs:
Simplified allocations for no-std on stable Rust.
All allocations require a *Store which gives them a 'static lifetime.
You can swap out alloc for faux_alloc and as long as the APIs are supported it will work. Emulating https://doc.rust-lang.org/alloc/boxed/index.html Emulating https://doc.rust-lang.org/alloc/sync/index.html Emulating https://doc.rust-lang.org/alloc/task/index.html