Hi! I'm trying to help set up the futures-lite crate to work without std
and without an allocator (GitHub issue). Now I'm seeing this error:
error: no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait.
Is there an easy way to see what dependency or part of code is requiring allocation? My best idea so far is to write an allocator that prints a backtrace and then run the tests with that allocator enabled. That wouldn't be 100% guaranteed to find every possible allocation but it might be good enough to work. But I feel like there is probably a more official way to go about this.