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
32,064 downloads per month
Used in 10 crates
(via mimalloc-safe)
2MB
30K
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
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"] }