Book Description
Thread-safe, reliable, and lightning-fast, Rust has been the most loved programming language on Stack Overflow for four years and counting! This open source systems language gets its amazing speed in large part from its memory safety - and without resource-greedy garbage collection. Offering freedom from a runtime requirement, a rich type system, and control over low-level details, Rust is a cut above the rest in areas including command line applications, WebAssembly, and embedded services. Is it any wonder Rust is a favorite among systems programmers everywhere?
In A Rust Sampler, Rust gurus Carol Nichol and Jake Goulding have expertly gathered interesting and useful Rust concepts and techniques and wrapped them up in one tidy, practical package. You'll learn about the latest edition of Rust and what it means to you, work through a Test Driven Development example hands-on, see how Rust prevents a concurrency bug in Ruby, and more. Hone your Rust skills and get ready to create production-quality, lightning-fast Rust projects with this free mini ebook!
This open book is licensed under a Open Publication License (OPL). You can download A Rust Sampler ebook for free in PDF format (14.3 MB).
Table of Contents
What the 2018 Edition of Rust Means to You
A Test Driven Development Example in Rust
Comparison of Concurrency in Ruby and Rust
Why You Can't Store a Value and a Reference to that Value in the Same Struct
Why It's Discouraged to Accept a Reference to a String, Vec, or Box as a Function Parameter