13 releases

new 0.1.52 Jan 11, 2026
0.1.51 Oct 16, 2025
0.1.50 Jul 10, 2025
0.1.49 Jun 16, 2025
0.1.45 Mar 16, 2025

#1069 in Memory management

Download history 5149/week @ 2025-09-21 4791/week @ 2025-09-28 3820/week @ 2025-10-05 5903/week @ 2025-10-12 6716/week @ 2025-10-19 6274/week @ 2025-10-26 6790/week @ 2025-11-02 7046/week @ 2025-11-09 6345/week @ 2025-11-16 6162/week @ 2025-11-23 5743/week @ 2025-11-30 6266/week @ 2025-12-07 9701/week @ 2025-12-14 6832/week @ 2025-12-21 6038/week @ 2025-12-28 9122/week @ 2026-01-04

32,064 downloads per month
Used in 10 crates (via mimalloc-safe)

MIT license

2MB
30K SLoC

C 23K SLoC // 0.2% comments Visual Studio Project 2.5K SLoC JavaScript 2.5K SLoC // 0.1% comments Rust 484 SLoC // 0.0% comments C++ 458 SLoC // 0.1% comments Visual Studio Solution 151 SLoC

Contains (Windows DLL, 105KB) mimalloc-redirect-arm64ec.dll, (Windows DLL, 62KB) mimalloc-redirect-arm64.dll, (Windows DLL, 61KB) mimalloc-redirect.dll, (Windows DLL, 39KB) mimalloc-redirect32.dll, (DOS exe, 24KB) c_src/mimalloc3/bin/minject-arm64.exe, (DOS exe, 25KB) c_src/mimalloc3/bin/minject.exe and 5 more.

mimalloc-safe

Forked from https://github.com/purpleprotocol/mimalloc_rust

Latest Version Documentation

A drop-in global allocator wrapper around the mimalloc allocator. Mimalloc is a general purpose, performance oriented allocator built by Microsoft.

Usage

use mimalloc_safe::MiMalloc;

#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

Requirements

A C compiler is required for building mimalloc with cargo.

Usage with secure mode

Using secure mode adds guard pages, randomized allocation, encrypted free lists, etc. The performance penalty is usually around 10% according to mimalloc own benchmarks.

To enable secure mode, put in Cargo.toml:

[dependencies]
mimalloc-safe = { version = "*", features = ["secure"] }

Dependencies