purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator
MIT License
481 stars 42 forks source link

Expose version function #119

Closed nathaniel-daniel closed 1 month ago

nathaniel-daniel commented 1 month ago

Expose the mi_version function as a method on MiMalloc.

Although undocumented as an item, MiMalloc docs suggest using this function to confirm overriding worked.

Since this function is considered as a part of the extended api from the POV of the sys crate, I added a new extended feature to the wrapper crate.