3 releases

0.1.3 Jul 3, 2019
0.1.2 Jul 3, 2019
0.1.0 Jun 22, 2019

#607 in Memory management

Download history 4/week @ 2024-11-15 7/week @ 2024-11-22 6/week @ 2024-11-29 32/week @ 2024-12-06 23/week @ 2024-12-13 4/week @ 2024-12-20 3/week @ 2025-01-03 14/week @ 2025-01-10 7/week @ 2025-01-17 7/week @ 2025-01-24 19/week @ 2025-01-31 42/week @ 2025-02-07 97/week @ 2025-02-14 8/week @ 2025-02-21 24/week @ 2025-02-28

177 downloads per month

MIT/Apache

650KB
9K SLoC

C 5K SLoC // 0.2% comments JavaScript 2K SLoC // 0.1% comments Visual Studio Project 2K SLoC Rust 191 SLoC // 0.1% comments Visual Studio Solution 141 SLoC Shell 59 SLoC // 0.1% comments C++ 56 SLoC

A Rust allocator backed by mimalloc

Travis-CI Status

This crates provides a Rust #[global_allocator] backed by mimalloc.

See also the mimalloc-sys crate providing raw FFI bindings to mimalloc.

Usage

# Cargo.toml
[dependencies]
mimallocator = "0.1" 
// main.rs
#[global_allocator]
static GLOBAL: mimallocator::Mimalloc = mimallocator::Mimalloc;

The mimalloc CMake configuration is exposed with these features

  • stats: Print statistics at program exit
  • secure: Build in secure mode
  • check_full: Enable full internal checks and asserts
# Cargo.toml
[dependencies]
mimallocator = { version = "0.1", features = ["secure", "stats", "check_full"] }

License

This project is licensed under either of

at your option.

Contribution

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

Dependencies