#allocation #allocator #alloc

nightly haz-alloc

A general-purpose allocator written in Rust

6 releases

0.3.1 May 4, 2023
0.3.0 Apr 23, 2023
0.2.1 Jan 27, 2022
0.1.2 Jan 27, 2022

#319 in Memory management

Download history 7/week @ 2024-07-26 4/week @ 2024-09-20 1/week @ 2024-09-27

72 downloads per month

MIT/Apache

57KB
1.5K SLoC

🚧 Work in progress 🚧

Currently this should not be considered production-ready.

haz-alloc

Crate Documentation GitHub Workflow Status License

haz-alloc is a general-purpose allocator written in Rust, inspired by jemalloc.

This crate requires the nightly version of Rust.

Supported platforms

Supported platforms by haz-alloc.

Platform Supported Tested (C.I.)
Windows ✔️ ✔️
Linux ✔️ ✔️
Mac OS
Other Unix-like Untested

If you want to use on some platform that haz-alloc does not support, you can use haz-alloc-core, that implements the allocator, and provide the system functions it uses.

Do not depend on both haz-alloc and haz-alloc-core on the same crate. haz-alloc may bump its haz-alloc-core depedency major version while only bumping its minor version, which will cause breakage if both are being depended on.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–6.5MB
~37K SLoC