7 releases
Uses new Rust 2024
| new 0.5.2 | May 22, 2026 |
|---|---|
| 0.5.1 | May 19, 2026 |
| 0.4.4 | Apr 16, 2026 |
#284 in Memory management
216 downloads per month
Used in 18 crates
(2 directly)
38KB
685 lines
ax-allocator
Various allocator algorithms in a unified interface
English | 中文
Introduction
ax-allocator provides Various allocator algorithms in a unified interface. It is maintained as part of the TGOSKits component set and is intended for Rust projects that integrate with ArceOS, AxVisor, or related low-level systems software.
ax-allocator was derived from https://github.com/arceos-org/axallocator
Quick Start
Installation
Add this crate to your Cargo.toml:
[dependencies]
ax-allocator = "0.4.0"
Run Check and Test
# Enter the crate directory
cd components/axallocator
# Format code
cargo fmt --all
# Run clippy
cargo clippy --all-targets --all-features
# Run tests
cargo test --all-features
# Build documentation
cargo doc --no-deps
Integration
Example
use ax_allocator as _;
fn main() {
// Integrate `ax-allocator` into your project here.
}
Documentation
Generate and view API documentation:
cargo doc --no-deps --open
Online documentation: docs.rs/ax-allocator
Contributing
- Fork the repository and create a branch
- Run local format and checks
- Run local tests relevant to this crate
- Submit a PR and ensure CI passes
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Dependencies
~1–435KB