buddy-alloc

Crates.iobuddy-alloc
lib.rsbuddy-alloc
version0.6.0
sourcesrc
created_at2020-01-05 03:14:10.740292
updated_at2024-10-15 08:38:45.854759
descriptionBuddy-alloc is a memory allocator for no-std Rust, used for embedded environments.
homepage
repositoryhttps://github.com/jjyr/buddy-alloc
max_upload_size
id195314
size57,415
jjy (jjyr)

documentation

README

Buddy-alloc

Crates.io

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

Usage

Check examples and Rust Doc.

  • 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

Commit count: 59

cargo fmt