This crates provides a Rust #[global_allocator]
backed by [mimalloc
].
See also the [mimalloc-sys
] crate providing raw FFI bindings to [mimalloc
].
```toml
[dependencies] mimallocator = "0.1" ```
```rust // main.rs
static GLOBAL: mimallocator::Mimalloc = mimallocator::Mimalloc; ```
The [mimalloc
] CMake configuration is exposed with these features
```toml
[dependencies] mimallocator = { version = "0.1", features = ["secure", "stats", "check_full"] } ```
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in mimalloc-sys
by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.