From 1d858175fc9a04666441c64c9c5ce8983154e655 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Tue, 24 May 2022 12:35:21 +0100 Subject: [PATCH] feat(semaphore): Init crate --- semaphore/Cargo.toml | 8 ++++++++ semaphore/src/lib.rs | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 semaphore/Cargo.toml create mode 100644 semaphore/src/lib.rs diff --git a/semaphore/Cargo.toml b/semaphore/Cargo.toml new file mode 100644 index 0000000..408cfb7 --- /dev/null +++ b/semaphore/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "semaphore" +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/semaphore/src/lib.rs b/semaphore/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/semaphore/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}