22 ms·
Re: amount of low level code needing unsafe blocks, its worth checking out this series that documents creating a bare metal kernel in rust that has lots of type
by dikaiosune 11y ago
Re: amount of low level code needing unsafe blocks, its worth checking out this series that documents creating a bare metal kernel in rust that has lots of type safety and uses shockingly little assembly or unsafe:
http://os.phil-opp.com/ http://os.phil-opp.com/
- pjmlp 11y agoC created this wrong perception that you need lots unsafe code, due to how it does strings and vectors. In all safe alternatives to C, just like Rust sure you need unsafe at the Assembly FFI level and hardware integration like IO ports and interrupt handling. But everything else can be just plain safe code.