The Rust Programming Language is an online book by Steve Klabnik, Carol Nichols and Chris Krycho, with contributions from the Rust community. The official site provides the HTML text and links to installation information and other editions.
This listing covers the freely readable online edition. Printed or commercial ebook editions are separate products. Start at the official Rust book, and check its stated toolchain and edition requirements for code examples.