purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libmimalloc-sys is missing #![no_std] and injects std into my no_std crate

asrael opened this issue · comments

Error message I receive during the build from my crate:

error[E0152]: found duplicate lang item panic_impl
28 | fn panic(_: &PanicInfo) -> ! { loop {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the lang item is first defined in crate std (which libmimalloc_sys depends on)

See PR comment: This has probably gone stale, also it's a very simple change once the platform deps were fixed in a previous release from the cmake-rs -> cc-rs change.

commented

See PR comment: This has probably gone stale, also it's a very simple change once the platform deps were fixed in a previous release from the cmake-rs -> cc-rs change.