Core features of Rust
The first place we can use for understanding Rust’s core features is the official website, https://www.rust-lang.org/. The site does a very good job of emphasizing the most important features of Rust:
- Fast and memory-efficient
- No runtime
- No garbage collector
- Integrates with other languages
- Memory safety and thread safety through a rich type system and ownership model
- Great documentation
- Friendly compiler with useful error messages
- Integrated package manager and build tool
- Auto formatter
- Smart multi-editor support with auto-completion and type inspections
From this description only, we can already see a few similarities with C++, along with improvements on the current state of C++. The similarities are in the level of control: native compilation, no garbage collector, speed, and memory efficiency are qualities that C++ touts as well. The differences point to things that we discussed at length in this book...