Rust Programming in easy steps introduces all the features of the Rust programming language, using worked example programs.
Rust is still an immature language and sees a major release every six years. Rust 2024 is expected to be released in February 2025, and is the version of the language that this book will deal with. The language differences are slight. Of greater concern is the library of “crates” that support more advanced features. Many of these are either not in place or not stable enough to be relied on. In particular, no one crate has emerged that provides a desktop GUI interface. Therefore, all the examples in this book will be for command-line, text-based programs.
The book includes two full example programs taken from areas where Rust has seen significant use: web back-end and embedded development. The latter requires that the reader obtain an Arduino and a few electronic components. This optional project need not cost more than around £10.
Rust Programming in easy steps is intended for experienced programmers and is not suitable for beginners.
Covers Rust 2024, which is due for release in February 2025.
Introduction and installation
The structure of a computer program in memory
Detecting bugs in the compiler
Saying hello
The file structure of a project
Structuring data
Control flow
Vectors, strings and hash maps
Implementations
Traits and lifetimes
Closures and iterators
Real-world projects
Smart pointers
Concurrency
Macros
Advanced topics
Rust for web back-end development
Rust for embedded development
Future direction
Height:2270
Width:1860
Spine:1
Weight:0.00