From ec2aec02671f17b70b4010ce105fa1bb7f764fab Mon Sep 17 00:00:00 2001 From: NGnius Date: Thu, 28 May 2020 17:16:05 -0400 Subject: [PATCH] Create rust lib --- .gitignore | 6 ++++++ Cargo.toml | 9 +++++++++ src/lib.rs | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore index 9a3a8d8..a57d563 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,9 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out + + +#Added by cargo + +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..7c2f6e0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "gcmm" +version = "0.1.0" +authors = ["NGnius "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[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); + } +}