5 unstable releases
| new 0.4.4 | Apr 16, 2026 |
|---|---|
| 0.4.3 | Apr 16, 2026 |
| 0.2.1 | Sep 11, 2025 |
| 0.2.0 | Dec 10, 2024 |
| 0.1.0 | Jul 18, 2024 |
#84 in Memory management
4,343 downloads per month
Used in 64 crates
(2 directly)
20KB
397 lines
bitmap-allocator
Bit allocator based on segment tree algorithm
English | 中文
Introduction
bitmap-allocator provides Bit allocator based on segment tree algorithm. 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.
Quick Start
Installation
Add this crate to your Cargo.toml:
[dependencies]
bitmap-allocator = "0.4.1"
Run Check and Test
# Enter the crate directory
cd components/bitmap-allocator
# 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 bitmap_allocator as _;
fn main() {
// Integrate `bitmap-allocator` into your project here.
}
Documentation
Generate and view API documentation:
cargo doc --no-deps --open
Online documentation: docs.rs/bitmap-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
~30KB