https://github.com/lemonhx/mimalloc-rust
The Best and Highest-Leveled and Newest bingding for MiMalloc Ever Existed in Rust
https://github.com/lemonhx/mimalloc-rust
allocator rust-lang
Last synced: 10 months ago
JSON representation
The Best and Highest-Leveled and Newest bingding for MiMalloc Ever Existed in Rust
- Host: GitHub
- URL: https://github.com/lemonhx/mimalloc-rust
- Owner: LemonHX
- License: other
- Created: 2021-08-13T02:28:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T12:01:03.000Z (over 1 year ago)
- Last Synced: 2025-03-30T03:06:56.705Z (10 months ago)
- Topics: allocator, rust-lang
- Language: C
- Homepage:
- Size: 316 KB
- Stars: 61
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# The Best and Highest-Leveled and Newest binding for MiMalloc Ever Existed in Rust
> mimalloc 2.1.2 stable

[](https://docs.rs/mimalloc-rust)
[](https://crates.io/crates/mimalloc-rust)
## Why create this
in repo `https://github.com/purpleprotocol/mimalloc_rust` i didn't see any data types and it neither has all the functionalities which mimalloc has provided, in other words it's garbage.
## Usage
first add to dependencies
```toml
[dependencies]
mimalloc-rust = "0.2.1"
```
then set the global allocator
```rust
use mimalloc_rust::*;
#[global_allocator]
static GLOBAL_MIMALLOC: GlobalMiMalloc = GlobalMiMalloc;
```