logoalt Hacker News

tliltocatl • yesterday at 7:40 AM • 2 replies • view on HN

Which is useless if you don't want any dynamic allocation at all.


Replies

stymaar • yesterday at 8:18 AM

If you don't want any allocation at all, you don't need an allocator API.

But the global allocator is the response to your previous comment:

> When you need it, you need it for the whole program (including all the dependencies).

chiffaa • yesterday at 7:52 AM

Then you should generally go for `no_alloc`, because std allocates, so no_std + no_alloc leaves you with core + a bunch of crates for no_std data manipulation

➕ show 2 replies