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

`no_std` environments are different. They don't allow allocations unless you explicitly add an allocator. You also have to define the panic handler yourself.

Generally `no_std` libraries will not allocate or panic themselves. There is still the possibility of panicking (e.g. out of bounds array access) but there are alternatives that don't panic if that's a concern even with a custom handler.



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

Search: