# Rust chunked range allocator
[](https://crates.io/crates/chunked-range-alloc)
[](https://docs.rs/chunked-range-alloc)
A simple range allocator for chunked external memory
`chunked-range-alloc` was created for 2 use cases:
1. packing game assets into archive files
2. basis of specialized vulkan memory allocator
## Features:
- `Allocation` includes `chunk_index` in addition to `offset` and `len`
- `from_allocations` constructor for loading existing allocations (example: game assets index)
- optional `bincode` and `serde` support
- simple, safe code
- _good enough_ performance: allocator uses `BTree` internally, best-fit search strategy, immediately coalesces on free
## Non-goals:
- blazingly fast constant O(🚀) time complexity
## MSRV
Latest stable
## License
Licensed under either of:
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
at your option.