Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions target_chains/sui/sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "pyth-sui-rs"
version = "0.1.0"
edition = "2024"

[dependencies]
3 changes: 3 additions & 0 deletions target_chains/sui/sdk/rust/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 🦀 pyth-sui-rs

> A Rust SDK for integrating [Pyth Network](https://pyth.network) price feeds into your [Sui](https://sui.io) blockchain applications.
14 changes: 14 additions & 0 deletions target_chains/sui/sdk/rust/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);
}
}
Empty file.