Our great sponsors
-
Well, from the example, I see exactly two unsafe blocks, both quite small. Something like 5 lines out of 175 are unsafe. Looking around the other samples, there's multiple files with no unsafe at all, and I have yet to see one where they just gave up and made a significant chunk of the file unsafe.
-
The one on the bottom left is mrustc, a compiler which is specifically designed to bootstrap the actual rustc with minimal optimization; it is not general-purpose. The one on the bottom right is rustc_codegen_gcc, an experimental backend that allows rustc to use GCC instead of LLVM; it is nowhere near ready for production right now. The only relevant compilers here are rustc and gccrs, the latter of which is also nowhere near ready for production.
-
SonarLint
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
-
The one on the bottom left is mrustc, a compiler which is specifically designed to bootstrap the actual rustc with minimal optimization; it is not general-purpose. The one on the bottom right is rustc_codegen_gcc, an experimental backend that allows rustc to use GCC instead of LLVM; it is nowhere near ready for production right now. The only relevant compilers here are rustc and gccrs, the latter of which is also nowhere near ready for production.
-
The one on the bottom left is mrustc, a compiler which is specifically designed to bootstrap the actual rustc with minimal optimization; it is not general-purpose. The one on the bottom right is rustc_codegen_gcc, an experimental backend that allows rustc to use GCC instead of LLVM; it is nowhere near ready for production right now. The only relevant compilers here are rustc and gccrs, the latter of which is also nowhere near ready for production.
-
Rustlings if you want exercises
-
Tour of Rust if you want quick interactive examples
-
Rust by example if you want more examples
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
The official book if you want explanations
-
-
I write C++ and raw Win32 for more than 20 years. I'm the author of this, and I'm rewriting my personal stuff in Rust just for fun.
-
I write C++ and raw Win32 for more than 20 years. I'm the author of this, and I'm rewriting my personal stuff in Rust just for fun.
-
-
But to bring some data, check out the fuzz trophy case. It shows that failures in Rust are most often assertions/panics (equivalent to C++ exception) with memory corruption being relatively rare (it's not never—Rust isn't promising magic—but it's a significant change).