Skip to content

Commit

Permalink
Merge pull request #1307 from Oscar-Pepper/zingo_sync_add_crate
Browse files Browse the repository at this point in the history
added new zingo sync crate
  • Loading branch information
zancas authored Jul 23, 2024
2 parents 1638826 + f26309b commit d2e7616
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"zingo-testvectors",
"zingo-netutils",
"zingo-memo",
"zingo-sync",
]
resolver = "2"

Expand Down
7 changes: 7 additions & 0 deletions zingo-sync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "zingo-sync"
version = "0.1.0"
edition = "2021"

[dependencies]
tracing = "0.1.40"
14 changes: 14 additions & 0 deletions zingo-sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit d2e7616

Please sign in to comment.