# Command-LineRust A Project-Based Primer for Writing Rust CLIs

> 金屋电子书图书详情的 Markdown 版本。

- 规范页面：https://pdfs.top/book/1b7f9
- Markdown 版本：https://pdfs.top/book/1b7f9.md
- 作者：Ken Youens-Clark
- ISBN：9781098109431
- 出版日期：2022-02-22
- 语言：english
- 分类：计算机、编程
- 评分：7.8
- 可用格式：PDF（6.65 MB，396 页）
- 更新时间：2026-08-04 12:23:20

## 下载方式

本站不在 Markdown 页面直接提供文件地址。请前往规范页面，点击对应格式的下载按钮完成下载。

### PDF

- 文件格式：PDF
- 文件大小：6.65 MB
- 页数：396 页
- 下载说明：请打开规范页面 https://pdfs.top/book/1b7f9，点击 PDF 的下载按钮完成下载。


## 内容简介

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
