summaryrefslogtreecommitdiff
path: root/rust/theBook/chapter-12-command-line-project/minigrep
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2023-01-09 18:34:39 +0800
committergarhve <git@garhve.com>2023-01-09 18:34:39 +0800
commitbcc303880f7078d612207571e196697a0d0b35bf (patch)
tree162b1cc2d12ee30c2749d4fb8bda4122d8767319 /rust/theBook/chapter-12-command-line-project/minigrep
parentfb2299d7e10f63af36a35e0b1c16adbcdd416b02 (diff)
finish chapter 11
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);
+}