summaryrefslogtreecommitdiff
path: root/rust/theBook/chapter-12-command-line-project/minigrep
diff options
context:
space:
mode:
Diffstat (limited to 'rust/theBook/chapter-12-command-line-project/minigrep')
-rw-r--r--rust/theBook/chapter-12-command-line-project/minigrep/Cargo.toml8
-rw-r--r--rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs6
2 files changed, 14 insertions, 0 deletions
diff --git a/rust/theBook/chapter-12-command-line-project/minigrep/Cargo.toml b/rust/theBook/chapter-12-command-line-project/minigrep/Cargo.toml
new file mode 100644
index 0000000..a256566
--- /dev/null
+++ b/rust/theBook/chapter-12-command-line-project/minigrep/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "minigrep"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
diff --git a/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs b/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
new file mode 100644
index 0000000..ae7def5
--- /dev/null
+++ b/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
@@ -0,0 +1,6 @@
+use std::env;
+
+fn main() {
+ let args: Vec<String> = env::args().collect();
+ dbg!(args);
+}