Cargo Features

mimalloc2-rust has no features set by default.

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

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

mimalloc2-rust-sys:

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

secure

Enables secure of mimalloc2-rust-sys

mimalloc2-rust-sys:

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

asm

Enables asm of mimalloc2-rust-sys

mimalloc2-rust-sys:

Generate assembly files

skip-collect-on-exit

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

mimalloc2-rust-sys:

Skip collecting memory on program exit

mimalloc2-rust has 5 features without comments.