Skip to content

Commit

Permalink
chore: use workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Apr 10, 2024
1 parent 001046c commit 545b7e9
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 87 deletions.
51 changes: 51 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,57 @@ activeperl = "*"
[workspace.metadata.dist.github-custom-runners]
x86_64-unknown-linux-gnu = "ubuntu-22.04"

[workspace.dependencies]
anyhow = "1.0.80"
assert_cmd = "2.0.14"
async-trait = "0.1.77"
axum = "0.7.5"
base64 = "0.22.0"
bip32 = "0.5.1"
bip39 = "2.0.0"
bitcoincore-rpc = "0.18.0"
chrono = "0.4.31"
clap = "4.5.1"
cln-grpc = "0.1.7"
console = "0.15.8"
dialoguer = "0.11.0"
dirs = "5.0.1"
dotenvy = "0.15.7"
fedimint-tonic-lnd = "0.2.0"
hex = "0.4.3"
http-body-util = "0.1.0"
hyper = "1"
indicatif = "0.17.8"
itertools = "0.12.1"
mockall = "0.12.1"
num-format = "0.4.4"
opentelemetry = "0.22.0"
opentelemetry-otlp = "0.15.0"
opentelemetry_sdk = "0.22.1"
pretty_assertions = "1.4.0"
qrcode = "0.14.0"
rand = "0.8.5"
reqwest = { version = "0.12.3", default-features = false }
serde = "1.0.197"
serde_json = "1.0.115"
serde_with = "3.6.0"
sqlx = { version = "0.7.4", default-features = false }
tempfile = "3.10.1"
testcontainers = "0.15.0"
testcontainers-modules = "0.3.6"
thiserror = "1.0.56"
tokio = "1.37.0"
tonic = "0.8"
tower = "0.4.13"
tower-http = "0.5.0"
tracing = "0.1.40"
tracing-opentelemetry = "0.23.0"
tracing-subscriber = "0.3.18"
url = "2.5.0"
utoipa = "4.2.0"
utoipa-swagger-ui = "6.0.0"
uuid = "1.7.0"

[profile.dev.package]
secp256k1 = { opt-level = 3 }
secp256k1-sys = { opt-level = 3 }
Expand Down
32 changes: 16 additions & 16 deletions integrationtests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ name = "itests"
path = "src/lib.rs"

[dependencies]
rand = "0.8.5"
axum = "0.7.5"
anyhow = { version = "1.0.80", features = ["backtrace"] }
serde = { version = "1.0.197", features = ["derive"] }
rand = { workspace = true }
axum = { workspace = true }
anyhow = { workspace = true, features = ["backtrace"] }
serde = { workspace = true, features = ["derive"] }
lightning-invoice = "0.29.0"
bitcoin_hashes = { version = "0.12.0", default-features = false }
secp256k1 = { version = "0.27.0", default-features = false, features = ["recovery", "alloc", "rand"] }
testcontainers = "0.15.0"
testcontainers-modules = { version = "0.3.4", features = ["postgres"] }
bitcoincore-rpc = "0.18.0"
fedimint-tonic-lnd = { version = "0.2.0", features = ["lightningrpc", "walletrpc"] }
url = "2.5.0"
testcontainers = { workspace = true }
testcontainers-modules = { workspace = true, features = ["postgres"] }
bitcoincore-rpc = { workspace = true }
fedimint-tonic-lnd = { workspace = true, features = ["lightningrpc", "walletrpc"] }
url = { workspace = true }
moksha-mint = { path = "../moksha-mint" }
hex = "0.4.3"
reqwest = { version = "0.12.3", default-features = false, features = ["json", "rustls-tls"] }
hex = { workspace = true }
reqwest = { workspace = true, features = ["json", "rustls-tls"] }

[target.'cfg(not(target_family="wasm"))'.dependencies]
tokio = { version = "1.37.0", features = ["sync", "rt-multi-thread"] }

[dev-dependencies]
anyhow = { version = "1.0.80", features = ["backtrace"] }
tokio = { version = "1.37.0", features = ["full"] }
reqwest = { version = "0.12.3", default-features = false, features = ["json", "rustls-tls"] }
anyhow = { workspace = true, features = ["backtrace"] }
tokio = { workspace = true, features = ["full"] }
reqwest = { workspace = true, features = ["json", "rustls-tls"] }
moksha-mint = { path = "../moksha-mint" }
moksha-wallet = { path = "../moksha-wallet" }
moksha-core = { path = "../moksha-core" }
tempfile = "3.9.0"
assert_cmd = "2.0.14"
tempfile = { workspace = true }
assert_cmd = { workspace = true }
18 changes: 9 additions & 9 deletions moksha-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ path = "src/lib.rs"
[dependencies]
moksha-wallet = { version = "0.2.1", path = "../moksha-wallet" }
moksha-core = { version = "0.2.1", path = "../moksha-core" }
console = "0.15.8"
clap = { version = "4.5.1", features = ["derive"] }
tokio = { version = "1.37.0", features = ["rt", "rt-multi-thread", "macros"] }
url = "2.4.1"
anyhow = { version = "1.0.75", features = ["backtrace"] }
dialoguer = "0.11.0"
num-format = "0.4.4"
qrcode = "0.14.0"
indicatif = "0.17.8"
console = { workspace = true }
clap = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
url = { workspace = true }
anyhow = { workspace = true, features = ["backtrace"] }
dialoguer = { workspace = true }
num-format = { workspace = true }
qrcode = { workspace = true }
indicatif = { workspace = true }
26 changes: 13 additions & 13 deletions moksha-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ name = "moksha_core"
path = "src/lib.rs"

[dependencies]
anyhow = "1.0.79"
url = "2.5.0"
base64 = "0.22.0"
anyhow = { workspace = true }
url = { workspace = true }
base64 = { workspace = true }
bitcoin_hashes = "0.13.0"
secp256k1 = { version = "0.28.2", features = ["rand", "serde"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
hex = "0.4.3"
serde_with = "3.6.0"
thiserror = "1.0.56"
itertools = "0.12.1"
uuid = { version = "1.7.0", features = ["serde", "v4"] }
utoipa = { version = "4.2.0" }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
hex = { workspace = true }
serde_with = { workspace = true }
thiserror = { workspace = true }
itertools = { workspace = true }
uuid = { workspace = true, features = ["serde", "v4"] }
utoipa = { workspace = true }

[target.'cfg(target_family = "wasm")'.dependencies]
# getrandom is transitive dependency of rand
Expand All @@ -32,5 +32,5 @@ utoipa = { version = "4.2.0" }
getrandom = { version = "0.2.14", features = ["js"] }

[dev-dependencies]
anyhow = "1.0.79"
pretty_assertions = "1.4.0"
anyhow = { workspace = true }
pretty_assertions = { workspace = true }
72 changes: 36 additions & 36 deletions moksha-mint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,46 @@ name = "mokshamint"
path = "src/lib.rs"

[dependencies]
clap = { version = "4.5.1", features = ["env", "derive"] }
hex = "0.4.3"
async-trait = "0.1.74"
anyhow = { version = "1.0.75", features = ["backtrace"] }
axum = { version = "0.7.5", features = ["http2"] }
hyper = "1"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
tokio = { version = "1.37.0", features = ["full"] }
tower-http = { version = "0.5.0", features = ["cors", "fs", "set-header"] }
clap = { workspace = true, features = ["env", "derive"] }
hex = { workspace = true }
async-trait = { workspace = true }
anyhow = { workspace = true, features = ["backtrace"] }
axum = { workspace = true, features = ["http2"] }
hyper = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tower-http = { workspace = true, features = ["cors", "fs", "set-header"] }

secp256k1 = { version = "0.28.2", default-features = false, features = ["rand", "serde"] }
thiserror = "1.0.50"
thiserror = { workspace = true }
moksha-core = { path = "../moksha-core", version = "0.2.1" }
lightning-invoice = "0.26.0"
reqwest = { version = "0.12.3", default-features = false, features = ["json", "rustls-tls", "socks"] }
url = "2.4.1"
dotenvy = "0.15.7"
fedimint-tonic-lnd = { version = "0.2.0", features = ["lightningrpc", "walletrpc"] }
uuid = { version = "1.6.1", features = ["serde", "v4"] }
utoipa = { version = "4.1.0", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "6.0.0", features = ["axum"] }
sqlx = { version = "0.7.4", default-features = false, features = ["postgres", "runtime-tokio", "tls-rustls", "migrate", "macros", "uuid"] }
chrono = "0.4.31"
cln-grpc = "0.1.7"
tonic = { version = "0.8", features = ["transport", "tls"] }
reqwest = { workspace = true, features = ["json", "rustls-tls", "socks"] }
url = { workspace = true }
dotenvy = { workspace = true }
fedimint-tonic-lnd = { workspace = true, features = ["lightningrpc", "walletrpc"] }
uuid = { workspace = true, features = ["serde", "v4"] }
utoipa = { workspace = true, features = ["axum_extras"] }
utoipa-swagger-ui = { workspace = true, features = ["axum"] }
sqlx = { workspace = true, features = ["postgres", "runtime-tokio", "tls-rustls", "migrate", "macros", "uuid"] }
chrono = { workspace = true }
cln-grpc = { workspace = true }
tonic = { workspace = true, features = ["transport", "tls"] }

tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
tracing-opentelemetry = "0.23.0"
opentelemetry_sdk = { version = "0.22.1", features = ["rt-tokio"] }
opentelemetry = "0.22.0"
opentelemetry-otlp = { version = "0.15.0", features = ["http-proto", "reqwest-client"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
tracing-opentelemetry = { workspace = true }
opentelemetry_sdk = { workspace = true, features = ["rt-tokio"] }
opentelemetry = { workspace = true }
opentelemetry-otlp = { workspace = true, features = ["http-proto", "reqwest-client"] }

[dev-dependencies]
tempfile = "3.8.1"
tower = { version = "0.4.13", features = ["util"] }
mockall = "0.12.1"
hex = "0.4.3"
http-body-util = "0.1.0"
testcontainers = "0.15.0"
testcontainers-modules = { version = "0.3.6", features = ["postgres"] }
pretty_assertions = "1.4.0"
tempfile = { workspace = true }
tower = { workspace = true, features = ["util"] }
mockall = { workspace = true }
hex = { workspace = true }
http-body-util = { workspace = true }
testcontainers = { workspace = true }
testcontainers-modules = { workspace = true, features = ["postgres"] }
pretty_assertions = { workspace = true }
26 changes: 13 additions & 13 deletions moksha-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ name = "moksha_wallet"
path = "src/lib.rs"

[dependencies]
anyhow = { version = "1.0.79", features = ["backtrace"] }
anyhow = { workspace = true, features = ["backtrace"] }
secp256k1 = { version = "0.28.2", default-features = false, features = ["serde"] }
moksha-core = { version = "0.2.1", path = "../moksha-core" }
serde_json = "1.0.115"
serde = "1.0.197"
thiserror = "1.0.56"
async-trait = "0.1.77"
serde_json = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
async-trait = { workspace = true }
lightning-invoice = "0.29.0"
url = "2.5.0"
dirs = "5.0.1"
bip32 = { version = "0.5.1", features = ["secp256k1", "std"] }
bip39 = "2.0.0"
hex = "0.4.3"
rand = "0.8.5"
url = { workspace = true }
dirs = { workspace = true }
bip32 = { workspace = true, features = ["secp256k1", "std"] }
bip39 = { workspace = true }
hex = { workspace = true }
rand = { workspace = true }

[target.'cfg(target_family = "wasm")'.dependencies]
gloo-net = { version = "0.5.0" }
Expand All @@ -42,5 +42,5 @@ tokio = { version = "1.37.0", features = ["rt", "rt-multi-thread", "macros"] }
sqlx = { version = "0.7.4", default-features = false, features = ["sqlite", "runtime-tokio", "tls-rustls", "migrate", "macros", "json"] }

[dev-dependencies]
tempfile = "3.10.1"
mockall = "0.12.1"
tempfile = { workspace = true }
mockall = { workspace = true }

0 comments on commit 545b7e9

Please sign in to comment.