From 7f2a393afb6f279f80d8d722202b30b70fda00bd Mon Sep 17 00:00:00 2001 From: Hammy Date: Thu, 28 Apr 2022 01:13:32 +0100 Subject: [PATCH] Setup cargo project skeleton --- Cargo.toml | 8 ++++++++ src/lib.rs | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e1cdfa5 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "mdbook-template" +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/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}