This is the book “Building Command Line Utilities in Rust”, which is currently rendered online.
Building the book requires mdBook >= v0.0.13. To get it:
$ cargo install mdbook
To build the book, type:
$ mdbook build
The output will be in the book
subdirectory. To check it out, open it in
your web browser.
Firefox:
$ firefox book/index.html # Linux
$ open -a "Firefox" book/index.html # OS X
Chrome:
$ google-chrome book/index.html # Linux
$ open -a "Google Chrome" book/index.html # OS X
To run the tests:
$ mdbook test
We'd love your help! Please see CONTRIBUTING.md.
To scan source files for spelling errors, you can use the spellcheck.sh
script. It needs a dictionary of valid words, which is provided in
dictionary.txt
. If the script produces a false positive (say, you used word
BTreeMap
which the script considers invalid), you need to add this word to
dictionary.txt
(keep the sorted order for consistency).
This is mostly for Carol's reference because she keeps having to look it up.
$ tr -d '\015' < DOS-file > UNIX-file