Post

unironically best thing about embedded rust is that you can basically write arduino (pin.set_high()) but it'll compile to something efficient in a lot of cases. the HAL crate layer is where you do unsafe mostly, and you can write drivers targeting the safe abstraction and they work crossplatform

Orual@nonbinary.computer

believe it or not, it is so much more pleasant. also very little devicd driver stuff in rust needs to be unsafe past the basic register flips.

and that means that when you're getting into the guts and everything is very unsafe and manual, it's for a specific reason and your goal is often simpler, to build a good abstraction that lets the compiler handle the constraints from that point on.

0 reposts9 likes

No replies yet.