PREFACE
This new version of the text assumes you’re using Rust 1.53.0 or later with edition="2018" in Cargo.toml of all projects to use Rust 2018 Edition idioms. See “Installation” on page 1 to install or update Rust, and see the new Appendix E for information on editions.
The 2018 Edition of the Rust language includes a number of improvements that make Rust more ergonomic and easier to learn. This rendition of the book contains a number of changes to reflect those improvements:
- Chapter 7, “Managing Growing Projects with Packages, Crates, and Modules,” has been mostly rewritten. The module system and the way paths work in the 2018 Edition were made more consistent.
- Chapter 10 has new sections titled “Traits as Parameters” and “Returning Types ...
Get The Rust Programming Language (Covers Rust 2018) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.