diff --git a/Cargo.toml b/Cargo.toml index aba71fa..78f9419 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,2 +1,5 @@ [workspace] -members = ["treacle"] +members = [ + "treacle", + "treacle_notify", +] diff --git a/treacle_notify/Cargo.toml b/treacle_notify/Cargo.toml new file mode 100644 index 0000000..b750573 --- /dev/null +++ b/treacle_notify/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "treacle_notify" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +notify = "6.1.1" +treacle = { version = "0.1.0", path = "../treacle" } diff --git a/treacle_notify/src/lib.rs b/treacle_notify/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/treacle_notify/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: usize, right: usize) -> usize { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}