HomeComputers & TechnologyCommand-Line Rust: A Project-Based Primer for Writing Rust CLIs
Skip to product information
1 of 1

Command-Line Rust: A Project-Based Primer for Writing Rust CLIs

paperbackFebruary 22, 2022
Regular price $51.08 USD
Regular price Sale price $51.08 USD
Sale Sold out
Shipping calculated at checkout.
Secure Checkout
Quality Guaranteed
New In Stock
ISBN-13: 9781098109431 ISBN-10: 1098109430
Publisher
O'Reilly
Binding
paperback
Published
February 22, 2022
Weight
2.3 lbs
Dimensions
22.90×2.50×18.40 cm

About this book

Command-Line Rust: A Project-Based Primer for Writing Rust CLIs by Youens-Clark, Ken. paperback edition. ISBN: 9781098109431.

Updated in 2024: A new version has been released that simplifies the programs used in the book, based on changes in the Rust language and crates since original publication. The code has been updated to reflect version 4 of the clap crate. For several consecutive years, Rust has been voted "most loved programming language" in Stack Overflows annual developer survey. This open source systems programming language is now used for everything from game engines and operating systems to browser components and virtual reality simulation engines. But Rust is also an incredibly complex language with a notoriously difficult learning curve. Rather than focusing on the language as a whole, this guide teaches Rust using a single small, complete, focused program in each chapter. Author Ken Youens-Clark shows you how to start, write, and test each of these programs to create a finished product. Youll learn how to handle errors in Rust, read and write files, and use regular expressions, Rust types, structs, and more. Discover how to: Use Rusts standard libraries and data types such as numbers, strings, vectors, structs, Options, and Results to create command-line programs Write and test Rust programs and functions Read and write files, including stdin, stdout, and stderr Document and validate command-line arguments Write programs that fail gracefully Parse raw and delimited text manually, using regular expressions and Rust crates Use and control randomness