From 6f6b66a235fd31497daff178dcb9b045aa31aedf Mon Sep 17 00:00:00 2001 From: 22388o <22388o@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:34:48 -0300 Subject: [PATCH] Initial Rust bindings --- .gitignore | 7 ++++++- Cargo.toml | 7 +++++++ rust/src/api/mod.rs | 0 rust/src/api/payjoin_react.rs | 0 rust/src/api/receive.rs | 0 rust/src/api/send.rs | 0 rust/src/api/uri.rs | 0 7 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Cargo.toml create mode 100644 rust/src/api/mod.rs create mode 100644 rust/src/api/payjoin_react.rs create mode 100644 rust/src/api/receive.rs create mode 100644 rust/src/api/send.rs create mode 100644 rust/src/api/uri.rs diff --git a/.gitignore b/.gitignore index 42a6bc6..74acec3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ # node.js -node_modules/ \ No newline at end of file +node_modules/ + +# rust +.bundle/ +target/ +cargo.lock \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..5243b7d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[pakcage] +name = "rust" +version = "0.1.0" +edition = "2021" + +[dependencies] +payjoin = "0.21.0" \ No newline at end of file diff --git a/rust/src/api/mod.rs b/rust/src/api/mod.rs new file mode 100644 index 0000000..e69de29 diff --git a/rust/src/api/payjoin_react.rs b/rust/src/api/payjoin_react.rs new file mode 100644 index 0000000..e69de29 diff --git a/rust/src/api/receive.rs b/rust/src/api/receive.rs new file mode 100644 index 0000000..e69de29 diff --git a/rust/src/api/send.rs b/rust/src/api/send.rs new file mode 100644 index 0000000..e69de29 diff --git a/rust/src/api/uri.rs b/rust/src/api/uri.rs new file mode 100644 index 0000000..e69de29