Crate baby_mimalloc

Crate baby_mimalloc 

Source
Expand description

Mimalloc implemented in Rust (not a binding to the C library) with only basic features.

Lock-free multi-threading, security features, and some performance enhancements are not implemented.

It can be used in no_std environments.

§Crate Features

Modules§

deferred_freedeferred_free

Structs§

Mimalloc
The main allocator object.
MimallocMutexWrapperstd_mutex or spin_mutex
Wrap Mimalloc inside a Mutex and implement GlobalAlloc.
MmapAllocmmap
A simple mmap-based allocator that can be used to power Mimalloc.

Functions§

new_mimalloc_mmapmmap
Create a new MimallocMmap instance by a const fn.
new_mimalloc_mmap_mutexmmap and (std_mutex or spin_mutex)
Create a new MimallocMmapMutex instance by a const fn.

Type Aliases§

MimallocMmapmmap
Mimalloc powered by mmap (MmapAlloc).
MimallocMmapMutexmmap and (std_mutex or spin_mutex)
Wrapper around Mimalloc with mmap allocator and mutex.