Skip to content

sui: rust sui sdk #2829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
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.