Shop top categories that ship internationally
Buy new:
-39% $40.02
Delivery Wednesday, December 10
Ships from: Amazon.com
Sold by: Amazon.com
$40.02 with 39 percent savings
List Price: $65.99
No Import Charges & $12.55 Shipping to Germany Details

Shipping & Fee Details

Price $40.02
AmazonGlobal Shipping $12.55
Estimated Import Charges $0.00
Total $52.57

Delivery Wednesday, December 10. Order within 19 hrs 37 mins
Or fastest delivery Thursday, December 4
In Stock
$$40.02 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$40.02
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Amazon.com
Sold by
Amazon.com
Returns
FREE refund/replacement until Jan 31, 2026
FREE refund/replacement until Jan 31, 2026
For the 2025 holiday season, eligible items purchased between November 1 and December 31, 2025 can be returned until January 31, 2026.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$32.61
FREE International Returns
Ships from Amazon. Overall item is in Good Condition. Ships from Amazon. Overall item is in Good Condition. See less
Delivery Tuesday, December 16
Or fastest delivery Thursday, December 4. Order within 11 hrs 12 mins
Only 1 left in stock - order soon.
$$40.02 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$40.02
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

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

4.5 out of 5 stars 60 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$40.02","priceAmount":40.02,"currencySymbol":"$","integerValue":"40","decimalSeparator":".","fractionalValue":"02","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"4P%2FcrtirM3JYxWI0sy28VUAJ7U2bDzSMqKliDYMrD5SKQNsTt92%2FlvFwylt%2FneL2ReGTYyPxQs%2FjNksEN5IbEfNGeFxCZOBhCRxQ14jLcjZzQyQPr%2FBdQ7ByHNPstcgCmx%2Fj5JDzWYBPC2J0DyKimg%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$32.61","priceAmount":32.61,"currencySymbol":"$","integerValue":"32","decimalSeparator":".","fractionalValue":"61","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"4P%2FcrtirM3JYxWI0sy28VUAJ7U2bDzSM27gigDRLndiZ%2BF4lWzqNPMMnYO5ZJMK%2BDPoaVvvFm%2BWaOWVB5WLZmUU0izIwhxfOgidMncsNKUCn3A79kbWaeOr5K1aK%2Fk09xgP6R0dw31%2BMmdktI9DJgM2bnLWpNjz5h132pPiXszoxSSkmrEtWF3CQRqMRBCW2","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

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