cyo-mimalloc 0.0.1

Provides mimalloc v3 as a Rust global allocator, with heaps, arenas and statistics.
Documentation
  • Coverage
  • 100%
    42 out of 42 items documented2 out of 31 items with examples
  • Size
  • Source code size: 63.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • cyo-alloc/mimalloc
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tiptenbrink

cyo-mimalloc

Configuration without Cargo features

We don't use cargo features, instead using build environment variables, so we don't have to think too much about all the features but can just pass things on to mimalloc as much as possible. You can set these in your project's .cargo/config.toml, for example:

[env]
MI_SECURE = "4"
MI_DEFAULT_ALLOW_THP = "0"

License

The Rust code is licensed under the Apache License 2.0. The mimalloc sources bundled in cyo-mimalloc-sys are MIT licensed.

Attributions

This is a fork of rustfs-mimalloc by houseme, also licensed under Apache-2.0, with various changes. rustfs-mimalloc in turn drew on mimalloc_rust by Octavian Oncescu (the mimalloc and libmimalloc-sys crates), and on the problems reported against it. Its MIT license is included as LICENSE-mimalloc_rust.

LLM disclaimer

This project is AI-assisted. All work after the fork was fully AI-assisted. I believe rustfs-mimalloc was also AI-assisted, although the original project it was based on was not. Of course almost all of the code that actually runs is just plain mimalloc, which is of course extremely mature and trusted software. Some care was taken for the API docs to be nice to read and not contain too much slop.