Re:Programming ARM Cortex-M Microcontrollers with Rust
by pjc50 on Sunday April 09, 2017 @12:30PM
(#14073026)
Having all your main inside unsafe doesn't seem like the best advert for Rust :)
[ Parent
| on HN ]
Re:Programming ARM Cortex-M Microcontrollers with Rust
by steveklabnik on Sunday April 09, 2017 @02:27PM
(#14073624)
You're right, it's not; I was just showing the smallest code. :)
This is unsafe specifically because of the mutable static; you can deal with that in a few different ways, but that wasn't the point of the example.