purpleprotocol / mimalloc_rust

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

Expose usable_size #117

Closed nathaniel-daniel closed 4 months ago

nathaniel-daniel commented 4 months ago

This function was added in #106 but was useless since it wasn't made public. This PR makes it public.

Also, note that this function is technically a part of the extended api: https://microsoft.github.io/mimalloc/group__extended.html I can feature-gate it appropriately if requested.

octavonce commented 4 months ago

Hi and thank you for opening this PR.

Yes, let's feature gate it.

nathaniel-daniel commented 4 months ago

Gated function in both low and high level libraries. This is a breaking change.