Skip to content

Commit

Permalink
starting marketplace native
Browse files Browse the repository at this point in the history
  • Loading branch information
kox committed Nov 18, 2024
1 parent 2daceec commit 52c3f09
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.lock

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

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 = [
# "experimental-loader",
"fundraiser",
# "escrow-optimized",
"hello_basic",
"hello_basic", "marketplace-native",
"vault_native",
"vault_optimized", "voting_optimized",
# "vault_based", not working on my arch
Expand Down
10 changes: 10 additions & 0 deletions marketplace-native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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]
14 changes: 14 additions & 0 deletions marketplace-native/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 52c3f09

Please sign in to comment.