Skip to content

Commit

Permalink
Centralise dependencies into the workspace definition
Browse files Browse the repository at this point in the history
The resulting benefits should be
* easy upgrade of deps in future
* may help reduce binary size (as we carry fewer versions of each dep)
  • Loading branch information
nain-F49FF806 committed Dec 25, 2024
1 parent 5e5d333 commit f825797
Show file tree
Hide file tree
Showing 31 changed files with 334 additions and 277 deletions.
70 changes: 70 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,73 @@ indy-vdr-proxy-client = { git = "https://github.com/hyperledger/indy-vdr.git", t
anoncreds = { git = "https://github.com/hyperledger/anoncreds-rs.git", tag = "v0.2.0" }
aries-askar = { version = "0.3.1" }
askar-crypto = { version = "0.3.1", default-features = false }

actix-web = "4"
android_logger = "0.14.1"
anoncreds-clsignatures = "0.3.2"
anyhow = "1.0.75"
async-trait = "0.1.73"
axum = "0.7.5"
backtrace = "0.3"
base64 = "0.22.1"
base64-url = "3.0.0"
bitvec = "1.0.1"
bs58 = "0.5.1"
bytes = "1.8.0"
chrono = { version = "0.4.31", default-features = false }
clap = "4.5.6"
cursive = "0.20.0"
darling = "0.20.1"
derive_builder = "0.20.0"
derive_more = "0.99.17"
dotenvy = "0.15"
env_logger = "0.11.3"
futures = { version = "0.3.28", default-features = false }
hex = "0.4.3"
http-body-util = "0.1.2"
hyper = "1.5.1"
hyper-tls = "0.6.0"
hyper-util = "0.1.10"
isolang = "2.2.0"
lazy_static = "1.3"
log = "0.4.22"
lru = "0.12.0"
mockall = "0.13.1"
multibase = "0.9.1"
native-tls = "0.2.12"
nom = "7.1.3"
num-bigint = "0.4.5"
once_cell = "1.19.0"
pem = "3.0.4"
percent-encoding = "2"
pretty_assertions = "1.4.0"
proc-macro2 = "1.0.58"
prost = { version = "0.13.3", default-features = false }
prost-types = "0.13.3"
quote = "1.0.27"
rand = "0.8.5"
regex = "1.10.5"
reqwest = "0.12.5"
serde = { version = "1.0.203", default-features = false }
serde_derive = "1.0.97"
serde_json = "1.0.120"
serde_test = "1.0.176"
sha2 = "0.10.8"
sqlx = "0.7"
strum = "0.26.3"
strum_macros = "0.26.4"
syn = "2.0.72"
thiserror = "1.0.49"
time = "0.3.20"
tokio = { version = "1.38.0", default-features = false }
tokio-test = "0.4.2"
tonic = { version = "0.12.3", default-features = false }
tonic-build = "0.12.3"
tower-http = "0.5.2"
transitive = "1.0.1"
typed-builder = "0.19.1"
uniffi = "0.23.0"
uniresid = { version = "0.1.4", default-features = false }
unsigned-varint = "0.8.0"
url = { version = "2.4.1", default-features = false }
uuid = { version = "1.8.0", default-features = false }
22 changes: 11 additions & 11 deletions aries/agents/aath-backchannel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ authors = ["Absa Group Limited", "Hyperledger Indy Contributors <hyperledger-ind
description = "Backchannel for aries-vcx"

[dependencies]
actix-web = "4"
derive_more = "0.99.14"
clap = { version = "4.5.6", features = ["derive"] }
reqwest = { version = "0.12.4", features = ["json", "multipart", "blocking"] }
rand = "0.8.5"
serde = "1.0.97"
serde_json = "1.0.40"
serde_derive = "1.0.97"
log = "^0.4.20"
env_logger = "0.11.3"
uuid = { version = "1.8.0", features = ["serde", "v4"] }
actix-web = { workspace = true }
derive_more = { workspace = true }
clap = { workspace = true, features = ["derive"] }
reqwest = { workspace = true, features = ["json", "multipart", "blocking"] }
rand = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_derive = { workspace = true }
log = { workspace = true }
env_logger = { workspace = true }
uuid = { workspace = true, features = ["serde", "v4"] }
aries-vcx-agent = { path = "../../../aries/agents/aries-vcx-agent" }
anoncreds_types = { path = "../../../aries/misc/anoncreds_types" }
display_as_json = { path = "../../../misc/display_as_json" }
Expand Down
14 changes: 7 additions & 7 deletions aries/agents/aries-vcx-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license.workspace = true
edition.workspace = true

[dependencies]
serde = "1.0.145"
serde = { workspace = true }
aries_vcx = { path = "../../aries_vcx" }
aries_vcx_wallet = { path = "../../aries_vcx_wallet", features = [
"askar_wallet",
Expand All @@ -20,10 +20,10 @@ did_resolver_sov = { path = "../../../did_core/did_methods/did_resolver_sov" }
did_peer = { path = "../../../did_core/did_methods/did_peer" }
did_key = { path = "../../../did_core/did_methods/did_key" }
public_key = { path = "../../../did_core/public_key" }
async-trait = "0.1.64"
serde_json = "1.0.85"
log = "0.4.17"
uuid = "1.2.1"
thiserror = "1.0.37"
url = { version = "2.3.1", features = ["serde"] }
async-trait = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
uuid = { workspace = true }
thiserror = { workspace = true }
url = { workspace = true, features = ["serde"] }
display_as_json = { path = "../../../misc/display_as_json" }
36 changes: 18 additions & 18 deletions aries/agents/mediator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ default = ["client"]
client = []

[dependencies]
anyhow = "1.0.75"
anyhow = { workspace = true }
aries_vcx = { path = "../../aries_vcx" }
aries_vcx_wallet = { path = "../../aries_vcx_wallet", features = [
"askar_wallet",
] }
async-trait = "0.1.73"
axum = "0.7.5"
async-trait = { workspace = true }
axum = { workspace = true }
diddoc_legacy = { path = "../../misc/legacy/diddoc_legacy" }
dotenvy = "0.15"
env_logger = "0.11.3"
futures = "0.3.28"
log = "0.4.20"
dotenvy = { workspace = true }
env_logger = { workspace = true }
futures = { workspace = true }
log = { workspace = true }
messages = { path = "../../messages" }
reqwest = { version = "0.12.5", features = ["json"] }
serde = "1.0.188"
serde_json = "1.0.106"
sqlx = { version = "0.7", features = ["mysql"] }
thiserror = "1.0.49"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tower-http = { version = "0.5.2", features = ["catch-panic"] }
url = "2.4.1"
uuid = "1.4.1"
reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true }
serde_json = { workspace = true }
sqlx = { workspace = true, features = ["mysql"] }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tower-http = { workspace = true, features = ["catch-panic"] }
url = { workspace = true }
uuid = { workspace = true }
test_utils = { path = "../../misc/test_utils" }
base64-url = "3.0.0"
base64-url = { workspace = true }

[dev-dependencies]
chrono = "0.4.31"
chrono = { workspace = true }
12 changes: 6 additions & 6 deletions aries/agents/mediator/client-tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ edition = "2021"
aries_vcx_wallet = { path = "../../../aries_vcx_wallet", features = [
"askar_wallet",
] }
cursive = { version = "0.20.0", features = ["crossterm-backend"] }
futures = "0.3.28"
log = "0.4.20"
cursive = { workspace = true, features = ["crossterm-backend"] }
futures = { workspace = true, features = ["default"] }
log = { workspace = true }
mediator = { path = ".." }
messages = { path = "../../../messages" }
reqwest = "0.12.5"
serde_json = "1.0.107"
reqwest = { workspace = true }
serde_json = { workspace = true }

tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
48 changes: 24 additions & 24 deletions aries/aries_vcx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,31 @@ did_key = { path = "../../did_core/did_methods/did_key" }
public_key = { path = "../../did_core/public_key" }
did_peer = { path = "../../did_core/did_methods/did_peer" }
did_resolver_registry = { path = "../../did_core/did_resolver_registry" }
bs58 = "0.5.0"
async-trait = "0.1.53"
log = "0.4.16"
chrono = "0.4.23"
time = "0.3.20"
lazy_static = "1.3"
serde = "1.0.97"
serde_json = "1.0.40"
serde_derive = "1.0.97"
regex = "1.1.0"
base64 = "0.22.1"
sha2 = "0.10.7"
num-bigint = "0.4.5"
futures = { version = "0.3", default-features = false }
uuid = { version = "1.4.1", default-features = false, features = ["v4"] }
strum = "0.26.3"
strum_macros = "0.26.4"
derive_builder = "0.20.0"
tokio = { version = "1.38.0" }
thiserror = "1.0.37"
url = { version = "2.3", features = ["serde"] }
backtrace = { optional = true, version = "0.3" }
bs58 = { workspace = true }
async-trait = { workspace = true }
log = { workspace = true }
chrono = { workspace = true }
time = { workspace = true }
lazy_static = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_derive = { workspace = true }
regex = { workspace = true }
base64 = { workspace = true }
sha2 = { workspace = true }
num-bigint = { workspace = true }
futures = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
strum = { workspace = true }
strum_macros = { workspace = true }
derive_builder = { workspace = true }
tokio = { workspace = true }
thiserror = { workspace = true }
url = { workspace = true, features = ["serde"] }
backtrace = { workspace = true, optional = true }

[dev-dependencies]
test_utils = { path = "../misc/test_utils" }
tokio = { version = "1.38", features = ["rt", "macros", "rt-multi-thread"] }
pretty_assertions = "1.4.0"
tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread"] }
pretty_assertions = { workspace = true }
did_resolver_sov = { path = "../../did_core/did_methods/did_resolver_sov" }
14 changes: 7 additions & 7 deletions aries/aries_vcx_anoncreds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ anoncreds = { workspace = true, optional = true }
aries_vcx_wallet = { path = "../aries_vcx_wallet" }
anoncreds_types = { path = "../misc/anoncreds_types" }
did_parser_nom = { path = "../../did_core/did_parser_nom" }
async-trait = "0.1.68"
thiserror = "1.0.40"
log = "0.4.17"
uuid = { version = "1.3.0", default-features = false, features = ["v4"] }
serde = { version = "1.0.159", features = ["derive"] }
serde_json = "1.0.95"
time = "0.3.20"
async-trait = { workspace = true }
thiserror = { workspace = true }
log = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
time = { workspace = true }
33 changes: 15 additions & 18 deletions aries/aries_vcx_ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,26 @@ cheqd = ["dep:did_cheqd", "dep:did_resolver", "dep:url"]
aries_vcx_wallet = { path = "../aries_vcx_wallet" }
anoncreds_types = { path = "../misc/anoncreds_types" }
did_parser_nom = { path = "../../did_core/did_parser_nom" }
thiserror = "1.0.40"
thiserror = { workspace = true }
indy-vdr.workspace = true
indy-vdr-proxy-client = { workspace = true, optional = true }
did_cheqd = { path = "../../did_core/did_methods/did_cheqd", optional = true }
did_resolver = { path = "../../did_core/did_resolver", optional = true }
url = { version = "2.4.1", optional = true }
serde_json = "1.0.95"
url = { workspace = true, optional = true }
serde_json = { workspace = true }
public_key = { path = "../../did_core/public_key" }
async-trait = "0.1.68"
time = "0.3.20"
async-trait = { workspace = true }
time = { workspace = true }
indy-ledger-response-parser = { path = "../misc/indy_ledger_response_parser" }
log = "0.4.17"
serde = { version = "1.0.159", features = ["derive"] }
lru = { version = "0.12.0" }
tokio = { version = "1.38" }
chrono = { version = "0.4", default-features = false, features = ["alloc"] }
bitvec = "1.0.1"
log = { workspace = true }
serde = { workspace = true, features = ["derive"] }
lru = { workspace = true }
tokio = { workspace = true }
chrono = { workspace = true, features = ["alloc"] }
bitvec = { workspace = true }

[dev-dependencies]
tokio = { version = "1.38.0", default-features = false, features = [
"macros",
"rt",
] }
chrono = { version = "0.4", default-features = true }
mockall = "0.13.1"
uuid = { version = "1.4.1", default-features = false, features = ["v4"] }
tokio = { workspace = true, features = ["macros", "rt"] }
chrono = { workspace = true }
mockall = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
26 changes: 13 additions & 13 deletions aries/aries_vcx_wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ edition.workspace = true
askar_wallet = ["dep:aries-askar"]

[dependencies]
anyhow = "1.0"
anyhow = { workspace = true }
aries-askar = { workspace = true, optional = true }
async-trait = "0.1.68"
bs58 = { version = "0.5" }
base64 = "0.22.1"
log = "0.4.17"
serde = { version = "1.0.159", features = ["derive"] }
serde_json = "1.0.95"
async-trait = { workspace = true }
bs58 = { workspace = true }
base64 = { workspace = true }
log = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
public_key = { path = "../../did_core/public_key" }
rand = "0.8.5"
thiserror = "1.0.40"
tokio = { version = "1.38" }
typed-builder = "0.19.1"
uuid = { version = "1.3.0", default-features = false, features = ["v4"] }
rand = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
typed-builder = { workspace = true }
uuid = { workspace = true, features = ["v4"] }

[dev-dependencies]
tokio = { version = "1.38", features = ["rt", "macros", "rt-multi-thread"] }
tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread"] }
24 changes: 12 additions & 12 deletions aries/messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ license.workspace = true
doctest = false

[dependencies]
serde = { version = "1.0.167", features = ["derive"] }
chrono = { version = "0.4.23", features = ["serde"] }
lazy_static = "1.3"
serde_json = "1.0.100"
url = { version = "2.3", features = ["serde"] }
strum = "0.26.3"
strum_macros = "0.26.4"
thiserror = "1.0.37"
derive_more = "0.99.17"
transitive = "1.0.1"
isolang = { version = "2.2.0" }
typed-builder = "0.19.1"
serde = { workspace = true, features = ["derive"] }
chrono = { workspace = true, features = ["serde"] }
lazy_static = { workspace = true }
serde_json = { workspace = true }
url = { workspace = true, features = ["serde"] }
strum = { workspace = true }
strum_macros = { workspace = true }
thiserror = { workspace = true }
derive_more = { workspace = true }
transitive = { workspace = true }
isolang = { workspace = true }
typed-builder = { workspace = true }
messages_macros = { path = "../messages_macros" }
diddoc_legacy = { path = "../misc/legacy/diddoc_legacy" }
shared = { path = "../misc/shared" }
Expand Down
8 changes: 4 additions & 4 deletions aries/messages_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ proc-macro = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
proc-macro2 = "1.0.58"
quote = "1.0.27"
syn = "2.0.16"
darling = "0.20.1"
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true }
darling = { workspace = true }
shared = { path = "../misc/shared" }
Loading

0 comments on commit f825797

Please sign in to comment.