Thanks to visit codestin.com
Credit goes to lib.rs

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

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

216 downloads per month
Used in 18 crates (2 directly)

Apache-2.0

38KB
685 lines

ax-allocator

Various allocator algorithms in a unified interface

Crates.io Docs.rs Rust License

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

  1. Fork the repository and create a branch
  2. Run local format and checks
  3. Run local tests relevant to this crate
  4. Submit a PR and ensure CI passes

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Dependencies

~1–435KB