From 171a4fa4d15c4be14d63fdc5d258610bb26bd162 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 11 Sep 2021 21:18:09 +0530 Subject: restructure repo into bin, lib and macros --- lib/Cargo.toml | 8 ++++++++ lib/src/lib.rs | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 lib/Cargo.toml create mode 100644 lib/src/lib.rs (limited to 'lib') diff --git a/lib/Cargo.toml b/lib/Cargo.toml new file mode 100644 index 0000000..49e2e49 --- /dev/null +++ b/lib/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "lib" +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/lib/src/lib.rs b/lib/src/lib.rs new file mode 100644 index 0000000..31e1bb2 --- /dev/null +++ b/lib/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} -- cgit v1.2.3