From 67f288c561504313811d71f35091c7d5b9f4a070 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 17 Sep 2018 22:05:47 -0600 Subject: [PATCH] v0.0.0: init project template --- .gitignore | 2 ++ Cargo.toml | 6 ++++++ README.md | 34 ++++++++++++++++++++++++++++++++++ src/main.rs | 3 +++ 4 files changed, 45 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..87a635f --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "grep" +version = "0.1.0" +authors = ["AJ ONeal "] + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..c5aa653 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +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: + +```bash +curl https://sh.rustup.rs -sSf | sh +``` + +If you already have rust installed you can update it to the latest version like so: + +```bash +restup update +``` + +Install grep.rs +--------------- + +```bash +git clone https://git.coolaj86.com/coolaj86/grep.rs +pushd rust.rs/ +``` + +History +------- + +```bash +cargo init --bin --name grep +``` diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}