#1405·mimalloc

Support official Rust FFI bindings

Author: OscarTHZhangCreated Sep 16, 2026Updated Sep 16, 2026

Currently the most popular mimalloc Rust wrapper is https://github.com/purpleprotocol/mimalloc_rust, but it only exposes mimalloc as a global allocator and all the rich features such as Arenas are missing or only available in the hidden libmimalloc-sys crate. The mimalloc version is also not up-to-date.

There are also other open-source projects building the mimalloc Rust FFI bindings themselves. An example of this is Bun: https://github.com/oven-sh/bun, where it mirrored the mimalloc source code and build a thin FFI layer itself.

It'd be good for the mimalloc to release its official Rust FFI bindings so that all the APIs, documentation, and bug fixes are up to date, just like how ms-quic has a core C implementation and at the same time expose its APIs to C++/C#/Rust: https://github.com/microsoft/msquic