minigrep
codePlease read this description in its entirety before starting the lab!
We will continue learning about Rust through another project. This project is more complicated than the previous one, and requires use of more advanced Rust concepts. These concepts will be useful for you as you implement the assignments and the course project. Note that there is an extra day for you to complete this project with your group – take your time, and try to make sure you understand everything before submitting.
In this lab, you will:
You’ll need to have Rust installed, just as in Lab 1.
Go through Chapter 12, “Building
a Command Line Program” in the Rust book. Follow each step,
line-by-line, all the way until you have a complete
minigrep
program. Once again, I encourage you make sure to
type each line into your editor, rather than
copy-and-pasting. I will be available if you want to ask any
questions.
After you’ve completed the project, add comments
to the top of src/main.rs
or src/lib.rs
answering the following
questions:
minigrep
functionality. How did you overcome them?minigrep
. How did you test your code? Why was
it helpful?Upload the following to Blackboard before the due date above:
gzip
ped code archive of your minigrep
project directory
src/
as well as
Cargo.toml
.src/main.rs
or src/lib.rs
should contain comments
responding to the questions above. These may take up several lines.Although this is a group assignment, each member of the
group needs to submit their own copy to Blackboard. Make sure
each group member’s name is in your Cargo.toml
:
authors = ["Partner 1", "Partner 2"]