-
Book Overview & Buying
-
Table Of Contents
Rust for C++ Developers
By :
For us to choose Rust, it must present a compelling set of features that create a meaningful improvement over the status quo. In this section, we'll examine a few aspects and features of Rust that make it a great choice for reliable and high-performance software.
I'd like to start by sharing one of my favorite examples for Rust beginners: reading a file and producing a hash. Solving this problem in C++ probably begins with an extensive search for an appropriately licensed library that both implements the needed algorithm and happens to be compatible with whatever build system we're using. There are several tools to help with this problem in C++, but none of them are installed by default with every C++ toolset.
I like to use this problem just to show that Rust is easy to use out of the box. Grabbing dependencies is trivial, and a simple program in Rust actually looks simple. Try not to be overwhelmed by...