purpleprotocol / mimalloc_rust

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

Mark `libmimalloc_sys` as `no_std` to support `no_std` users. #69

Closed monoclex closed 3 years ago

monoclex commented 3 years ago

The mimalloc_ruust library is marked as #![no_std], yet libmimalloc-sys is not marked as #![no_std] so no_std users of mimalloc_rust will pull in the std library as a result. This seems like a small oversight.

My specific use-case for this change is because I wish to create a library that does not link to std for a smaller size, but that still requires allocations.

I did not thoroughly check if this will adversely affect other end users, I'm hoping CI/CD will catch these.