Cargo Features

mimalloc-rust has no features set by default.

[dependencies]
mimalloc-rust = { version = "0.2.1", features = ["unstable", "local-dynamic-tls", "secure", "asm", "skip-collect-on-exit"] }
unstable
local-dynamic-tls

Enables local-dynamic-tls of mimalloc-rust-sys

mimalloc-rust-sys:

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

secure

Enables secure of mimalloc-rust-sys

mimalloc-rust-sys:

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

asm

Enables asm of mimalloc-rust-sys

mimalloc-rust-sys:

Generate assembly files

skip-collect-on-exit

Enables skip-collect-on-exit of mimalloc-rust-sys

mimalloc-rust-sys:

Skip collecting memory on program exit

mimalloc-rust has 5 features without comments.