rustfs-mimalloc-sys
Low-level FFI bindings to mimalloc V3 (v3.5.0).
For a safe, ergonomic wrapper, use rustfs-mimalloc.
Usage
[]
= "0.2"
unsafe
Features
| Feature | Description |
|---|---|
secure |
Heap allocation encryption (MI_SECURE=4) |
debug |
mimalloc debug checks |
debug_in_debug |
Auto-enable debug in Cargo debug builds |
override |
Override system malloc/free |
local_dynamic_tls |
Use local-dynamic TLS model |
no_thp |
Disable Transparent Huge Pages |
What's Included
This crate vendors the mimalloc V3 C source and compiles it via the cc crate. No system mimalloc installation required.
- Static linking — no runtime dependencies
- Platform-specific flags handled automatically (Windows libs, musl compat, TLS model)
links = "mimalloc"— exportsDEP_MIMALLOC_INCLUDEfor downstream C/C++ crates
MSRV
Rust 1.96.0. Rolling support window for the latest three stable Rust releases.
License
Apache-2.0. The vendored mimalloc C library is MIT-licensed.