News for hackers. Stuff that matters.
Re:From Zero to Main(): Bare Metal Rust by cyphar on Tuesday December 17, 2019 @09:45PM (#21821294)
Nobody is saying that every application of C is one where Rust would provide a clear benefit. But there are many examples where writing code C++ or C would result in many more memory safety bugs than if the project was written in Rust (even partially).

In the firmware world, arguably if the ESP8266 firmware was written in Rust it's less likely that some of the remote exploits from September would've been possible.

Re:From Zero to Main(): Bare Metal Rust by jonny383 on Wednesday December 18, 2019 @01:12AM (#21822309)
> In the firmware world, arguably if the ESP8266 firmware was written in Rust it's less likely that some of the remote exploits from September would've been possible.

Less likely, but not guaranteed. Rust is still very new, which means if people are migrating from writing firmware in C to Rust, chances are they are going to bring across C habbits, which will frankly lead to writing C in unsafe Rust.

The security of Rust is only as strong as the author who wrote it. We currently don't have anyone who started their firmware career on Rust.