2 unstable releases

Uses old Rust 2015

0.2.0 Dec 22, 2023
0.1.5 Dec 20, 2023
0.1.4 Nov 21, 2023

#90 in Memory management

Download history 500/week @ 2024-01-03 661/week @ 2024-01-10 765/week @ 2024-01-17 540/week @ 2024-01-24 652/week @ 2024-01-31 737/week @ 2024-02-07 459/week @ 2024-02-14 666/week @ 2024-02-21 685/week @ 2024-02-28 700/week @ 2024-03-06 611/week @ 2024-03-13 868/week @ 2024-03-20 691/week @ 2024-03-27 879/week @ 2024-04-03 727/week @ 2024-04-10 788/week @ 2024-04-17

3,243 downloads per month
Used in 14 crates (via galloc)

MIT/Apache

120KB
2.5K SLoC

gear-dlmalloc

docs.rs Crates.io Version

This is a fork of https://github.com/alexcrichton/dlmalloc-rs used by Gear protocol and Vara chain.

All credit for original version goes to @alexcrichton

License

This project is licensed under either of

at your option.

Contribution

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


lib.rs:

A Rust port of the dlmalloc allocator.

The dlmalloc allocator is described at http://g.oswego.edu/dl/html/malloc.html and this Rust crate is a straight port of the C code for the allocator into Rust. The implementation is wrapped up in a Dlmalloc type and has support for Linux, OSX, and Wasm currently.

The primary purpose of this crate is that it serves as the default memory allocator for the wasm32-unknown-unknown target in the standard library. Support for other platforms is largely untested and unused, but is used when testing this crate.

Dependencies

~57–440KB