diff --git a/.gitignore b/.gitignore index 52b8e08..6523cb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -/target/ -Cargo.lock +/target/* +/rust/joinstr/Cargo.lock /dart/ios/ /dart/android/ +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index 16c40c1..a52fa96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,33 +1,5 @@ -[package] -name = "joinstr" -version = "0.0.1" -edition = "2021" - -[lib] -crate-type = ["rlib", "cdylib", "staticlib"] - -[features] -default = [] -async = ["nostr-sdk", "tokio"] - -[dependencies] -home = "=0.5.9" -bitcoin = "=0.32.2" -bip39 = { version = "2.0.0", features = ["rand"] } -hex-conservative = "0.2.1" -miniscript = {version = "12.2.0", features = ["base64", "serde"]} -simple_electrum_client = { git = "https://github.com/pythcoiner/simple_electrum_client.git", branch = "openssl_vendored"} -nostr-sdk = {version = "0.35.0", optional = true} -serde = { version = "1.0.210", features = ["derive"] } -serde_json = "1.0.128" -tokio = {version = "1.40.0", optional = true } -log = "0.4.22" -env_logger = "=0.10.2" -rand = "0.8.5" -simple_nostr_client = { git = "https://github.com/pythcoiner/simple_nostr_client.git", branch = "master" } -native-tls = "=0.2.13" - -[dev-dependencies] -electrsd = { git = "https://github.com/pythcoiner/electrsd.git", branch = "buffered_logs"} -nostrd = { git = "https://github.com/pythcoiner/nostrd.git", branch = "master" } +[workspace] +members = [ + "rust/joinstr", +] diff --git a/rust/joinstr/Cargo.toml b/rust/joinstr/Cargo.toml new file mode 100644 index 0000000..16c40c1 --- /dev/null +++ b/rust/joinstr/Cargo.toml @@ -0,0 +1,33 @@ +[package] +name = "joinstr" +version = "0.0.1" +edition = "2021" + +[lib] +crate-type = ["rlib", "cdylib", "staticlib"] + +[features] +default = [] +async = ["nostr-sdk", "tokio"] + +[dependencies] +home = "=0.5.9" +bitcoin = "=0.32.2" +bip39 = { version = "2.0.0", features = ["rand"] } +hex-conservative = "0.2.1" +miniscript = {version = "12.2.0", features = ["base64", "serde"]} +simple_electrum_client = { git = "https://github.com/pythcoiner/simple_electrum_client.git", branch = "openssl_vendored"} +nostr-sdk = {version = "0.35.0", optional = true} +serde = { version = "1.0.210", features = ["derive"] } +serde_json = "1.0.128" +tokio = {version = "1.40.0", optional = true } +log = "0.4.22" +env_logger = "=0.10.2" +rand = "0.8.5" +simple_nostr_client = { git = "https://github.com/pythcoiner/simple_nostr_client.git", branch = "master" } +native-tls = "=0.2.13" + +[dev-dependencies] +electrsd = { git = "https://github.com/pythcoiner/electrsd.git", branch = "buffered_logs"} +nostrd = { git = "https://github.com/pythcoiner/nostrd.git", branch = "master" } + diff --git a/README.md b/rust/joinstr/README.md similarity index 100% rename from README.md rename to rust/joinstr/README.md diff --git a/include/cpp/joinstr.cpp b/rust/joinstr/include/cpp/joinstr.cpp similarity index 100% rename from include/cpp/joinstr.cpp rename to rust/joinstr/include/cpp/joinstr.cpp diff --git a/include/cpp/joinstr.h b/rust/joinstr/include/cpp/joinstr.h similarity index 100% rename from include/cpp/joinstr.h rename to rust/joinstr/include/cpp/joinstr.h diff --git a/src/coinjoin/error.rs b/rust/joinstr/src/coinjoin/error.rs similarity index 100% rename from src/coinjoin/error.rs rename to rust/joinstr/src/coinjoin/error.rs diff --git a/src/coinjoin/mod.rs b/rust/joinstr/src/coinjoin/mod.rs similarity index 100% rename from src/coinjoin/mod.rs rename to rust/joinstr/src/coinjoin/mod.rs diff --git a/src/electrum.rs b/rust/joinstr/src/electrum.rs similarity index 100% rename from src/electrum.rs rename to rust/joinstr/src/electrum.rs diff --git a/src/interface.rs b/rust/joinstr/src/interface.rs similarity index 100% rename from src/interface.rs rename to rust/joinstr/src/interface.rs diff --git a/src/joinstr/error.rs b/rust/joinstr/src/joinstr/error.rs similarity index 100% rename from src/joinstr/error.rs rename to rust/joinstr/src/joinstr/error.rs diff --git a/src/joinstr/mod.rs b/rust/joinstr/src/joinstr/mod.rs similarity index 100% rename from src/joinstr/mod.rs rename to rust/joinstr/src/joinstr/mod.rs diff --git a/src/lib.rs b/rust/joinstr/src/lib.rs similarity index 100% rename from src/lib.rs rename to rust/joinstr/src/lib.rs diff --git a/src/nostr/async/mod.rs b/rust/joinstr/src/nostr/async/mod.rs similarity index 100% rename from src/nostr/async/mod.rs rename to rust/joinstr/src/nostr/async/mod.rs diff --git a/src/nostr/error.rs b/rust/joinstr/src/nostr/error.rs similarity index 100% rename from src/nostr/error.rs rename to rust/joinstr/src/nostr/error.rs diff --git a/src/nostr/mod.rs b/rust/joinstr/src/nostr/mod.rs similarity index 100% rename from src/nostr/mod.rs rename to rust/joinstr/src/nostr/mod.rs diff --git a/src/nostr/sync/mod.rs b/rust/joinstr/src/nostr/sync/mod.rs similarity index 100% rename from src/nostr/sync/mod.rs rename to rust/joinstr/src/nostr/sync/mod.rs diff --git a/src/signer/error.rs b/rust/joinstr/src/signer/error.rs similarity index 100% rename from src/signer/error.rs rename to rust/joinstr/src/signer/error.rs diff --git a/src/signer/mod.rs b/rust/joinstr/src/signer/mod.rs similarity index 100% rename from src/signer/mod.rs rename to rust/joinstr/src/signer/mod.rs diff --git a/src/utils.rs b/rust/joinstr/src/utils.rs similarity index 100% rename from src/utils.rs rename to rust/joinstr/src/utils.rs diff --git a/tests/bin/bitcoind_25_2 b/rust/joinstr/tests/bin/bitcoind_25_2 similarity index 100% rename from tests/bin/bitcoind_25_2 rename to rust/joinstr/tests/bin/bitcoind_25_2 diff --git a/tests/bin/electrs_0_9_11 b/rust/joinstr/tests/bin/electrs_0_9_11 similarity index 100% rename from tests/bin/electrs_0_9_11 rename to rust/joinstr/tests/bin/electrs_0_9_11 diff --git a/tests/bin/esplora b/rust/joinstr/tests/bin/esplora similarity index 100% rename from tests/bin/esplora rename to rust/joinstr/tests/bin/esplora diff --git a/tests/bin/mempool_3_0_0 b/rust/joinstr/tests/bin/mempool_3_0_0 similarity index 100% rename from tests/bin/mempool_3_0_0 rename to rust/joinstr/tests/bin/mempool_3_0_0 diff --git a/tests/coinjoin.rs b/rust/joinstr/tests/coinjoin.rs similarity index 100% rename from tests/coinjoin.rs rename to rust/joinstr/tests/coinjoin.rs diff --git a/tests/joinstr.rs b/rust/joinstr/tests/joinstr.rs similarity index 100% rename from tests/joinstr.rs rename to rust/joinstr/tests/joinstr.rs diff --git a/tests/utils.rs b/rust/joinstr/tests/utils.rs similarity index 100% rename from tests/utils.rs rename to rust/joinstr/tests/utils.rs