7 releases

0.1.6 Sep 12, 2019
0.1.5 Jul 4, 2019
0.1.1 Jun 22, 2019

#588 in Memory management

Download history 183/week @ 2024-07-22 155/week @ 2024-07-29 292/week @ 2024-08-05 7/week @ 2024-08-12 24/week @ 2024-08-19 176/week @ 2024-08-26 230/week @ 2024-09-02 44/week @ 2024-09-09 118/week @ 2024-09-16 251/week @ 2024-09-23 7/week @ 2024-09-30 83/week @ 2024-10-07 419/week @ 2024-10-14 121/week @ 2024-10-21 161/week @ 2024-10-28 279/week @ 2024-11-04

981 downloads per month
Used in 2 crates

MIT/Apache

640KB
9K SLoC

C 5K SLoC // 0.2% comments JavaScript 2K SLoC // 0.1% comments Visual Studio Project 2K SLoC Visual Studio Solution 142 SLoC Rust 123 SLoC // 0.1% comments C++ 57 SLoC

Raw C FFI bindings to mimalloc

This crates provides raw C FFI bindings to the mimalloc library.

Documentation

The documentation of the FFI bindings can be found in docs.rs.

Current mimalloc version: 1.0.1

Build dependencies: cmake.

Cargo features

The mimalloc CMake configuration is exposed with these features

  • stats: Print statistics at program exit
  • secure: Build in secure mode
  • check_full: Enable full internal checks and asserts
  • override: Overrides the malloc symbols with mimalloc symbols.

Platform support

The following table describes the supported platforms:

  • build: does the library compile for the target?
  • run: do our own tests pass on the target?
  • mimalloc: do mimalloc's tests pass on the target?
  • valgrind: do our own tests pass under valgrind?

Tier 1 targets are tested on all Rust channels (stable, beta, and nightly). All other targets are only tested on Rust nightly.

Apple targets: build run mimalloc valgrind
x86_64-apple-darwin

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mimalloc-sys by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies