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 d6c11944..798c8732 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 00000000..ec006287 --- /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 00000000..31e1bb20 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}