Registry / other / libmimalloc-sys

libmimalloc-sys

JSON →
library0.1.49rscratesunverified

Sys crate wrapping the mimalloc allocator for use in Rust programs.

# Cargo.toml [dependencies] libmimalloc-sys = "0.1.49"
INSTALL
IMPORT
SIG · LIBMIMALLOC-SYS
L
libmimalloc-sys
otherrustv0.1.49
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mi_malloc
use libmimalloc_sys::mi_malloc;

Allocates memory using the mimalloc allocator.

use libmimalloc_sys::mi_malloc; fn main() { unsafe { let ptr = mi_malloc(100); println!("Allocated memory at {:?}", ptr); // Free with mi_free } }
Debug
Known issues
gotchaUnsafe API; requires manual memory management
fix
Use safe wrappers like `mimalloc` crate instead
affects: >=0.1.0
Upgrade
Version history
0.1.49latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
libmimalloc-sys — cargo add libmimalloc-sys · libregistry