Skip to content
No description, website, or topics provided.
Rust Shell
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci Require TARGET from ci/ Jul 3, 2019
mimalloc-sys-test Build mimalloc-sys-test with malloc override Jul 3, 2019
mimalloc-sys Add C and POSIX APIs to mimalloc-sys when override enabled Jul 4, 2019
src Cleanup mimallocator API Jul 3, 2019
tests remove mi_usable_size test Jul 3, 2019
.gitignore Ignore Cargo.lock Jun 23, 2019
.travis.yml Disable override tests on windows Jul 3, 2019
Cargo.toml Implement malloc override Jul 3, 2019 Build static library with cc crate and add feature flags Jul 3, 2019
rustfmt.toml Enable CI Jun 22, 2019

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.


# Cargo.toml
mimallocator = "0.1" 
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
mimallocator = { version = "0.1", features = ["secure", "stats", "check_full"] }


This project is licensed under either of

at your option.


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.

You can’t perform that action at this time.