#alloc #allocator #memory-allocator #memory #buddy

buddy-alloc

Buddy-alloc is a memory allocator for no-std Rust, used for embedded environments

5 unstable releases

0.3.0 Jun 14, 2020
0.2.0 Jan 27, 2020
0.1.2 Jan 15, 2020

#65 in Memory management

Download history 50/week @ 2020-04-12 14/week @ 2020-04-19 3/week @ 2020-04-26 19/week @ 2020-05-03 103/week @ 2020-05-10 33/week @ 2020-05-17 47/week @ 2020-05-24 63/week @ 2020-05-31 22/week @ 2020-06-07 61/week @ 2020-06-14 51/week @ 2020-06-21 41/week @ 2020-06-28 29/week @ 2020-07-05 17/week @ 2020-07-12 31/week @ 2020-07-19 42/week @ 2020-07-26

203 downloads per month
Used in 4 crates (2 directly)

MIT license

22KB
492 lines

Buddy-alloc

Crates.io

Buddy-alloc is a memory allocator for no-std Rust, used for embedded environments.

Usage

Check examples and Rust Doc.

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, efficient enough, and It's easy to extended or composited with other memory allocation strategies. This crate is designed to be used in general environment, it should be able to used in similar embedded environments.

License

MIT

No runtime deps