Cargo Features

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

[dependencies]
mimalloc-rust-sys = { version = "1.7.9-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