This is an automated email from the ASF dual-hosted git repository.
garyw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git
The following commit(s) were added to refs/heads/master by this push:
new 7dc520d MNEMONIC-779 create a init subproject for this module
7dc520d is described below
commit 7dc520d09deb15861286a2a8dc718118e1261a34
Author: Katarina <[email protected]>
AuthorDate: Tue May 30 22:07:53 2023 -0700
MNEMONIC-779 create a init subproject for this module
Signed-off-by: Katarina <[email protected]>
---
mnemonic-protocol/Cargo.toml | 8 ++++++++
mnemonic-protocol/src/lib.rs | 14 ++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/mnemonic-protocol/Cargo.toml b/mnemonic-protocol/Cargo.toml
new file mode 100644
index 0000000..321866f
--- /dev/null
+++ b/mnemonic-protocol/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "mnemonic-protocol"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at
https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
diff --git a/mnemonic-protocol/src/lib.rs b/mnemonic-protocol/src/lib.rs
new file mode 100644
index 0000000..7d12d9a
--- /dev/null
+++ b/mnemonic-protocol/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);
+ }
+}