aoc

commit f9483d7ee9a96891fbfaebd73acdc6b6e6895e7f

Author: Honza Pokorny <honza@pokorny.ca>

Add Rust template

 .gitignore | 1 +
 2021/day-01/Cargo.lock | 7 +++++++
 2021/day-01/Cargo.toml | 8 ++++++++
 2021/day-01/src/main.rs | 13 +++++++++++++
 README.md | 1 +


diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..eb5a316cbd195d26e3f768c7dd8e1b47299e17f8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+target




diff --git a/2021/day-01/Cargo.lock b/2021/day-01/Cargo.lock
new file mode 100644
index 0000000000000000000000000000000000000000..7dc86fc9deef169dfa0709932dc5ece031781a87
--- /dev/null
+++ b/2021/day-01/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "day-01"
+version = "0.1.0"




diff --git a/2021/day-01/Cargo.toml b/2021/day-01/Cargo.toml
new file mode 100644
index 0000000000000000000000000000000000000000..3f8ba6c363317ca506984a109541ccd233ddc7a5
--- /dev/null
+++ b/2021/day-01/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "day-01"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]




diff --git a/2021/day-01/src/main.rs b/2021/day-01/src/main.rs
new file mode 100644
index 0000000000000000000000000000000000000000..e2a4a1f81bfd26b1a9732484f41d161858a3ea24
--- /dev/null
+++ b/2021/day-01/src/main.rs
@@ -0,0 +1,13 @@
+use std::io;
+use std::io::prelude::*;
+
+fn main() -> io::Result<()> {
+    let stdin = io::stdin();
+    let lines = stdin.lock().lines();
+
+    for line in lines {
+        println!("{:?}", line?);
+    }
+
+    Ok(())
+}




diff --git a/README.md b/README.md
index 61fe215b0c5c5620880a130655e024ad4c3d53c2..4bdd44a9506ed0b990ae58b05e383e7df194c9cb 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,7 @@ ==============
 
 * 2019 --- Python
 * 2020 --- Clojure
+* 2021 --- Rust
 
 License
 -------