add treacle_notify crate skeleton

This commit is contained in:
pantonshire committed 2023-09-02 14:08:30 +01:00
1 parent 0d384633f2
commit 14b79a170e
3 files changed
+28 -1

No files matched your search

+4 -1
View File
@@ -1,2 +1,5 @@
[workspace] [workspace]
members = ["treacle"] members = [
"treacle",
"treacle_notify",
]
+10
View File
@@ -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" }
+14
View File
@@ -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);
}
}