diff --git a/Cargo.lock b/Cargo.lock index 352511a21..0b1602bd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4211,6 +4211,13 @@ dependencies = [ "zcash_primitives", ] +[[package]] +name = "zingo-sync" +version = "0.1.0" +dependencies = [ + "tracing", +] + [[package]] name = "zingo-testutils" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 8cfb72541..7fa8ff919 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ members = [ "zingo-testvectors", "zingo-netutils", "zingo-memo", + "zingo-sync", ] resolver = "2" diff --git a/zingo-sync/Cargo.toml b/zingo-sync/Cargo.toml new file mode 100644 index 000000000..0db4963ae --- /dev/null +++ b/zingo-sync/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "zingo-sync" +version = "0.1.0" +edition = "2021" + +[dependencies] +tracing = "0.1.40" diff --git a/zingo-sync/src/lib.rs b/zingo-sync/src/lib.rs new file mode 100644 index 000000000..7d12d9af8 --- /dev/null +++ b/zingo-sync/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); + } +}