Buy new:
-39% $40.02$40.02
Delivery Wednesday, December 10
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Good
$32.61$32.61
Delivery Tuesday, December 16
Ships from: Amazon Sold by: Thrifty Bookish Boutique
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Command-Line Rust: A Project-Based Primer for Writing Rust CLIs 1st Edition
Purchase options and add-ons
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 Overflow's 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. You'll learn how to handle errors in Rust, read and write files, and use regular expressions, Rust types, structs, and more.
Discover how to:
- Use Rust's 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
- ISBN-101098109430
- ISBN-13978-1098109431
- Edition1st
- PublisherO'Reilly Media
- Publication dateFebruary 22, 2022
- LanguageEnglish
- Dimensions7.25 x 1 x 9 inches
- Print length400 pages
