Skip to Main Content
The Rust Programming Language
book

The Rust Programming Language

by Steve Klabnik, Carol Nichols
July 2018
Intermediate to advanced content levelIntermediate to advanced
552 pages
13h 50m
English
No Starch Press
Content preview from The Rust Programming Language

12AN I/O PROJECT: BUILDING A COMMAND LINE PROGRAM

image

This chapter is a recap of the many skills you’ve learned so far and an exploration of a few more standard library features. We’ll build a command line tool that interacts with file and command line input/output to practice some of the Rust concepts you now have under your belt.

Rust’s speed, safety, single binary output, and cross-platform support make it an ideal language for creating command line tools, so for our project, we’ll make our own version of the classic command line tool grep (globally search a regular expression and print). In the simplest use case, grep searches a specified file ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming WebAssembly with Rust

Programming WebAssembly with Rust

Kevin Hoffman
Programming Rust

Programming Rust

Jim Blandy, Jason Orendorff
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9781492067665Errata Page