Cargo Features

mimalloc2-rust-sys has no features set by default.

[dependencies]
mimalloc2-rust-sys = { version = "2.1.7-source", features = ["local-dynamic-tls", "secure", "asm", "skip-collect-on-exit"] }
local-dynamic-tls

Use slightly slower, dlopen-compatible TLS mechanism (Unix)

secure

Use full security mitigations (like guard pages, allocation randomization, double-free mitigation, and free-list corruption detection)

asm

Generate assembly files

skip-collect-on-exit

Skip collecting memory on program exit