Example project from the rust book.
Go to file
AJ ONeal 70adbe6c9b v0.1.4: use stderr for error messages 2018-09-18 22:23:18 -06:00
src v0.1.4: use stderr for error messages 2018-09-18 22:23:18 -06:00
.gitignore v0.0.0: init project template 2018-09-17 22:05:47 -06:00
Cargo.lock v0.1.0: some args handling 2018-09-17 23:33:56 -06:00
Cargo.toml v0.0.0: init project template 2018-09-17 22:05:47 -06:00
README.md v0.1.0: some args handling 2018-09-17 23:33:56 -06:00
poem.txt v0.1.0: some args handling 2018-09-17 23:33:56 -06:00

README.md

grep.rs

This is my personal exploration of the sample grep project in Chapter 12 of "The Rust Book".

Install Rust

To run this project you first need to install rust:

curl https://sh.rustup.rs -sSf | sh

If you already have rust installed you can update it to the latest version like so:

restup update

Install grep.rs

git clone https://git.coolaj86.com/coolaj86/grep.rs
pushd rust.rs/

History

cargo init --bin --name grep
cargo run

git clone --depth=1 https://github.com/rust-lang/rust.vim.git ~/.vim/bundle/rust.vim
git clone --depth=1 https://github.com/majutsushi/tagbar.git ~/.vim/bundle/tagbar
echo 'let g:tagbar_ctags_bin = "/Users/aj/github.com/universal-ctags/ctags/ctags"' >> ~/.vimrc
echo 'let g:rustfmt_autosave = 1' >> ~/.vimrc