mimalloc2-rust

Crates.iomimalloc2-rust
lib.rsmimalloc2-rust
version0.4.0
created_at2024-02-26 10:32:40.414513+00
updated_at2025-03-21 16:52:30.234416+00
descriptionthe fork of the best binding for mimalloc in rust
homepage
repositoryhttps://git.sr.ht/~alip/mimalloc2-rust
max_upload_size
id1153323
size19,275
Morgane Glidic (sardemff7)

documentation

README

The Best and Highest-Leveled and Newest binding for MiMalloc Ever Existed in Rust

mimalloc 2.2.2 stable

Why create this

  • in repo https://github.com/LemonHX/mimalloc-rust/pulls there're many pull requests open for a long time. Once these pull requests are merged, I am going to yank this crate.
  • in repo https://github.com/purpleprotocol/mimalloc_rust i didn't see any data types and it neither has all the functionalities which mimalloc has provided.

Usage

first add to dependencies

[dependencies]
mimalloc2-rust = "0.4"

then set the global allocator

use mimalloc2_rust::*;

#[global_allocator]
static GLOBAL_MIMALLOC: GlobalMiMalloc = GlobalMiMalloc;
Commit count: 0

cargo fmt