Skip to content

Support official Rust FFI bindings #1405

Description

@OscarTHZhang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions