Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeap. Vec, String, Box, format!, and println! all depend on alloc for heap allocations. If an allocator is provided, alloc can be used in no_std. For format!, there are alternatives such as providing a fixed u8 buffer. It's quite amazing what can be accomplished without alloc.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: