diff --git a/Cargo.lock b/Cargo.lock index 27eb17b..ef869c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2093,6 +2093,10 @@ dependencies = [ "libc", ] +[[package]] +name = "marketplace-native" +version = "0.1.0" + [[package]] name = "memchr" version = "2.7.4" diff --git a/Cargo.toml b/Cargo.toml index f307743..2b8c06b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ # "experimental-loader", "fundraiser", # "escrow-optimized", - "hello_basic", + "hello_basic", "marketplace-native", "vault_native", "vault_optimized", "voting_optimized", # "vault_based", not working on my arch diff --git a/marketplace-native/Cargo.toml b/marketplace-native/Cargo.toml new file mode 100644 index 0000000..a569aee --- /dev/null +++ b/marketplace-native/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "marketplace-native" +version = "0.1.0" +edition = "2021" +authors.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true + +[dependencies] diff --git a/marketplace-native/src/lib.rs b/marketplace-native/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/marketplace-native/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: u64, right: u64) -> u64 { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}