From 3ffefa32e156f3b8f05df798c4a3e6bd5899f30c Mon Sep 17 00:00:00 2001 From: olivia Date: Thu, 26 Apr 2018 21:41:19 +0200 Subject: [PATCH] init new cargo project --- .gitignore | 4 ++++ Cargo.toml | 6 ++++++ src/lib.rs | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore index d6c1194..798c873 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ *.swp target/ + +/target/ +**/*.rs.bk +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ec00628 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "rustlings" +version = "0.1.0" +authors = ["olivia "] + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..31e1bb2 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}