1 unstable release

0.1.0 Jun 18, 2022

#506 in Memory management

Apache-2.0 OR BSL-1.0 OR MIT

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

No runtime deps