https://github.com/ohmycloud/command_line_rust_exercises
command line with Rust
https://github.com/ohmycloud/command_line_rust_exercises
clap command-line
Last synced: 14 days ago
JSON representation
command line with Rust
- Host: GitHub
- URL: https://github.com/ohmycloud/command_line_rust_exercises
- Owner: ohmycloud
- License: mit
- Created: 2022-03-22T08:56:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T15:55:22.000Z (over 2 years ago)
- Last Synced: 2026-03-29T21:49:35.141Z (3 months ago)
- Topics: clap, command-line
- Language: Rust
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Command-Line Rust: A Project-Based Primer for Writing Rust CLIs

[Buy the logo on a shirt!](https://www.etsy.com/shop/ProgDrip)
This is the code repository for the O'Reilly book [_Command-Line Rust_](https://learning.oreilly.com/library/view/command-line-rust/9781098109424/) (ISBN 9781098109417) by Ken Youens-Clark.
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 focus 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 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
* Use and control randomness