7 unstable releases
0.6.0 | Oct 15, 2024 |
---|---|
0.5.1 | Apr 26, 2023 |
0.5.0 | Mar 29, 2023 |
0.4.1 | Nov 14, 2020 |
0.2.0 |
|
#69 in Memory management
3,536 downloads per month
Used in 30 crates
(6 directly)
37KB
844 lines
Buddy-alloc
Buddy-alloc is a memory allocator for no-std Rust, used for embedded environments.
Usage
- This allocator is combined by a link-list based fast allocator and a buddy allocator.
- No syscalls, we assume the execution environment has no MMU, you need to pre-allocate the memory range for heaps.
- No threadsafe supports; you need to implement locks on your own.
Why
My original intention is to enable alloc
crate for no-std Rust in CKB-VM without introducing LibC.
I choose the buddy allocation algorithm since it's simple, stable, and efficient enough.
This crate is designed to be used in general environment, it should be able to used in similar embedded environments.
License
MIT
Dependencies
~205KB