Skip to content

Commit

Permalink
deps: avoid duplicate crates
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 committed Feb 24, 2025
1 parent 07213e4 commit 657fcab
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 32 deletions.
26 changes: 26 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,29 @@ members = [
"rust/simple_electrum_client",
"rust/joinstr_wallet",
]

[workspace.dependencies]
bip39 = "2.0.0"
bitcoin = "=0.32.2"
bitcoin_slices = "0.8.0"
dirs = "6.0.0"
hex-conservative = "0.2.1"
hex_lit = "0.1.1"
home = "=0.5.9"
joinstr = { path = "rust/joinstr" }
libc = "0.2.170"
log = "0.4.25"
miniscript = "12.2.0"
native-tls = "=0.2.13"
nostr = "0.35.0"
nostr-sdk = "0.35.0"
nostrd = { git = "https://github.com/pythcoiner/nostrd.git", branch = "master" }
openssl = "0.10.66"
rand = "0.8.5"
serde = "1.0.218"
serde_json = "1.0.128"
simple_electrum_client = { path = "rust/simple_electrum_client" }
simple_nostr_client = { path = "rust/simple_nostr_client" }
tokio = "1.40.0"
url = "2.5.4"
websocket = { version = "0.27.1", default-features = false }
30 changes: 15 additions & 15 deletions rust/joinstr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ 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"]}
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"
home = { workspace = true }
bitcoin = { workspace = true }
bip39 = { workspace = true, features = ["rand"] }
hex-conservative = { workspace = true }
miniscript = { workspace = true, features = ["base64", "serde"] }
nostr-sdk = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tokio = { workspace = true, optional = true }
log = { workspace = true }
env_logger = "=0.10.2"
rand = "0.8.5"
simple_nostr_client = { path = "../simple_nostr_client" }
simple_electrum_client = { path = "../simple_electrum_client" }
native-tls = "=0.2.13"
rand = { workspace = true }
simple_nostr_client = { workspace = true }
simple_electrum_client = { workspace = true }
native-tls = { workspace = true }

[dev-dependencies]
electrsd = { git = "https://github.com/pythcoiner/electrsd.git", branch = "buffered_logs"}
nostrd = { git = "https://github.com/pythcoiner/nostrd.git", branch = "master" }
nostrd = { workspace = true }

10 changes: 5 additions & 5 deletions rust/joinstr_wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ edition = "2021"
crate-type = ["rlib", "cdylib", "staticlib"]

[dependencies]
dirs = "6.0.0"
joinstr = { path = "../joinstr" }
libc = "0.2.170"
serde = { version = "1.0.218", features = ["derive"] }
url = "2.5.4"
dirs = { workspace = true }
joinstr = { workspace = true }
libc = { workspace = true }
serde = { workspace = true, features = ["derive"] }
url = { workspace = true }


14 changes: 7 additions & 7 deletions rust/simple_electrum_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ name = "electrumsc-cli"
path = "src/bin/cli.rs"

[dependencies]
miniscript = { version = "12.2.0", features = ["serde", "base64"] }
bitcoin_slices = "0.8.0"
log = "0.4.22"
openssl = {version = "0.10.66", features = ["vendored"]}
serde = {version = "1.0.200", features = ["derive"]}
serde_json = "1.0.116"
miniscript = { workspace = true, features = ["serde", "base64"] }
bitcoin_slices = { workspace = true }
log = { workspace = true }
openssl = { workspace = true, features = ["vendored"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }

[dev-dependencies]
hex_lit = "0.1.1"
hex_lit = { workspace = true }
electrsd = {version = "0.29.0", features = []}
10 changes: 5 additions & 5 deletions rust/simple_nostr_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version = "0.1.0"
edition = "2021"

[dependencies]
log = "0.4.25"
nostr = {version = "0.35.0", features = ["nip04"]}
websocket = {version = "0.27.1", default-features = false, features = ["sync", "sync-ssl"]}
log = { workspace = true }
nostr = { workspace = true, features = ["nip04"] }
websocket = { workspace = true, features = ["sync", "sync-ssl"] }


[dev-dependencies]
nostrd = { git = "https://github.com/pythcoiner/nostrd.git", branch = "master" }
nostrd = { workspace = true }
env_logger = "0.11.6"
joinstr = { path = "../joinstr" }
joinstr = { workspace = true }

0 comments on commit 657fcab

Please sign in to comment.