3 releases (breaking)
| 0.4.0 | Apr 2, 2026 |
|---|---|
| 0.2.0 | Feb 28, 2026 |
| 0.1.3-preview.1 | Feb 6, 2026 |
#120 in Memory management
3,383 downloads per month
Used in 46 crates
(4 directly)
31KB
556 lines
axallocator
Various allocator algorithms behind a unified interface for no_std environments.
Allocator types
- Byte-granularity:
BuddyByteAllocator,SlabByteAllocator,TlsfByteAllocator - Page-granularity:
BitmapPageAllocator - ID allocator:
IdAllocator
Features
| Feature | Description |
|---|---|
bitmap |
Bitmap-based page allocator |
tlsf |
TLSF byte allocator |
slab |
Slab byte allocator (uses ax_slab_allocator) |
buddy |
Buddy byte allocator |
allocator_api |
Implement Allocator (nightly) |
page-alloc-* |
Page size / range (e.g. page-alloc-256m) |
axerrno |
AxError integration |
Default: page-alloc-256m. Use full for all allocators and allocator_api.
Usage
[dependencies]
axallocator = { version = "0.2", features = ["slab", "buddy"] }
License
GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0. See LICENSE.
Dependencies
~1–435KB