Skip to content

Commit

Permalink
add xmtp_xid crate
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Mar 25, 2024
1 parent dd5bcf1 commit 46bcd20
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
"xmtp_proto",
"xmtp_user_preferences",
"xmtp_v2",
"xmtp_mls", "xps-client",
"xmtp_mls", "xps-client", "xmtp_xid",
]

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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
14 changes: 14 additions & 0 deletions xmtp_xid/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 46bcd20

Please sign in to comment.