Skip to content

Commit

Permalink
Refactored TOML files - changes in volume management
Browse files Browse the repository at this point in the history
* bump ya-client

* exe-unit: forward volumes to ya-runtime-vm

* bump ya-client

* Update ya-client

* empty commit

* tech: migrate deveps to workspace

* fix: ya-client-model version

* Fix problem with cfg

---------

Co-authored-by: Przemysław Krzysztof Rekucki <[email protected]>
Co-authored-by: scx1332 <[email protected]>
  • Loading branch information
3 people authored Sep 19, 2024
1 parent b26220c commit b6cddc4
Show file tree
Hide file tree
Showing 37 changed files with 406 additions and 415 deletions.
249 changes: 119 additions & 130 deletions Cargo.lock

Large diffs are not rendered by default.

217 changes: 100 additions & 117 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ version = "0.16.0"
default = ['erc20-driver', 'gftp/bin']
dummy-driver = ['ya-dummy-driver']
erc20-driver = ['ya-erc20-driver']
framework-test = ['ya-exe-unit/system-test', 'ya-payment/framework-test', 'ya-identity/framework-test']
static-openssl = ["openssl/vendored", "openssl-probe"]
tos = []
framework-test = [
'ya-exe-unit/framework-test',
'ya-payment/framework-test',
'ya-identity/framework-test',
]
# Temporary to make goth integration tests work
central-net = ['ya-net/central-net']
packet-trace-enable = [
Expand All @@ -30,44 +34,45 @@ name = "yagna"
path = "core/serv/src/main.rs"

[dependencies]
gftp = {workspace = true, optional = true}
ya-activity = "0.4"
ya-client-model.workspace = true
ya-client.workspace = true
ya-compile-time-utils = "0.2"
ya-compile-time-utils.workspace = true
ya-activity.workspace = true
ya-core-model.workspace = true
ya-dummy-driver = {version = "0.3", optional = true}
ya-erc20-driver = {version = "0.4", optional = true}
ya-fd-metrics = {path = "utils/fd-metrics"}
ya-file-logging = "0.1"
ya-gsb-api = "0.1"
ya-identity = "0.3"
ya-market = "0.4"
ya-metrics = "0.2"
ya-net = {version = "0.3", features = ["service"]}
ya-payment = "0.3"
ya-persistence = {version = "0.3", features = ["service"]}
ya-sb-proto = {workspace = true}
ya-sb-router = {workspace = true}
ya-service-api = "0.1"
ya-service-api-derive = "0.2"
ya-service-api-interfaces = "0.2"
ya-service-api-web = "0.2"
ya-service-bus = {workspace = true}
ya-sgx = "0.2"
ya-dummy-driver = { workspace = true, optional = true }
ya-file-logging.workspace = true
ya-gsb-api.workspace = true
ya-erc20-driver = { workspace = true, optional = true }
ya-identity.workspace = true
ya-market.workspace = true
ya-metrics.workspace = true
ya-net = { workspace = true, features = ["service"] }
ya-payment.workspace = true
ya-persistence = { path = "core/persistence", features = ["service"] }
ya-sb-proto = { workspace = true }
ya-sb-router = { workspace = true }
ya-service-api.workspace = true
ya-service-api-derive.workspace = true
ya-service-api-interfaces.workspace = true
ya-service-api-web.workspace = true
ya-service-bus = { workspace = true }
ya-sgx.path = "core/sgx"
ya-utils-path.workspace = true
ya-utils-futures.workspace = true
ya-utils-networking = "0.2"
ya-utils-path = "0.1"
ya-utils-process = {version = "0.2", features = ["lock"]}
ya-version = "0.2"
ya-vpn = "0.2"
ya-utils-process = { workspace = true, features = ["lock"] }
ya-utils-networking.workspace = true
ya-fd-metrics = { path = "utils/fd-metrics" }
ya-version = { path = "core/version" }
ya-vpn.workspace = true
ya-client.workspace = true
ya-client-model.workspace = true
gftp = { workspace = true, optional = true }
# just to enable gftp build for cargo-deb
ya-exe-unit = {version = "0.4", optional = true, path = "exe-unit"}# just to enable conditionally running some tests
ya-provider = {version = "0.3", optional = true}# just to enable conditionally running some tests
ya-provider = { path = "agent/provider", optional = true } # just to enable conditionally running some tests
ya-exe-unit = { version = "0.4", optional = true, path = "exe-unit" } # just to enable conditionally running some tests

actix-rt.workspace = true
actix-service.workspace = true
actix-web.workspace = true

actix-rt = "2.7"
actix-service = "2"
actix-web = "4"
anyhow = "1.0"
chrono = "0.4"
directories = "2.0.2"
Expand All @@ -89,9 +94,10 @@ tokio-util = {version = "0.7", features = ["codec"]}
url = "2.1.1"

[dev-dependencies]
erc20_processor = {workspace = true}
ya-exe-unit = {version = "0.4", path = "exe-unit"}
ya-test-framework = "0.1"
erc20_processor = { workspace = true }
ya-test-framework.path= "test-utils/test-framework"

ya-exe-unit = { version = "0.4", path = "exe-unit" }

[package.metadata.deb]
assets = [
Expand Down Expand Up @@ -236,6 +242,11 @@ members = [
# this entry is needed to make sqlx version >=0.5.9 work with diesel 1.4.*
# diesel 1.4.* supports up to 0.23.0, but sqlx 0.5.9 requires 0.22.0
# sqlx 0.5.10 need 0.23.2, so 0.5.9 is last version possible
actix-rt = "2.7"
actix-service = "2"
actix-web = "4"
actix = { version = "0.13", default-features = false }

derive_more = "0.99.11"
erc20_payment_lib = {git = "https://github.com/golemfactory/erc20_payment_lib", rev = "4200567b931af64f4fb1f6b756dd6d051576b64f"}
erc20_processor = {git = "https://github.com/golemfactory/erc20_payment_lib", rev = "4200567b931af64f4fb1f6b756dd6d051576b64f"}
Expand All @@ -253,93 +264,65 @@ strum = {version = "0.24", features = ["derive"]}
trust-dns-resolver = "0.22"
url = "2.3.1"

ya-agreement-utils = {version = "0.6", path = "utils/agreement-utils"}
ya-core-model = {version = "0.10", path = "core/model"}
ya-relay-client = {git = "https://github.com/golemfactory/ya-relay.git", rev = "e199ee1cfdb22837f9d95f4202378e182d3cb489"}
ya-relay-stack = {git = "https://github.com/golemfactory/ya-relay.git", rev = "c92a75b0cf062fcc9dbb3ea2a034d913e5fad8e5"}
ya-utils-futures = {path = "utils/futures"}
ya-agreement-utils = { version = "0.6", path = "utils/agreement-utils" }
ya-exe-unit.path = "./exe-unit"
ya-relay-client = { git = "https://github.com/golemfactory/ya-relay.git", rev = "0588dd1af311ae19c621b04cc2a4cfd9c0483252" }
ya-relay-stack = { git = "https://github.com/golemfactory/ya-relay.git", rev = "c92a75b0cf062fcc9dbb3ea2a034d913e5fad8e5" }
ya-utils-futures = { path = "utils/futures" }
ya-utils-networking = { path = "utils/networking", default-features = false }
ya-file-logging.path = "utils/file-logging"
ya-utils-cli.path = "utils/cli"

mime = "0.3.17"
ya-service-bus = { version = "0.7.3", features = ['tls'] }
ya-sb-router = { version = "0.6.4" }
ya-sb-proto = { version = "0.6.2" }
ya-sb-util = { version = "0.5.1" }
parking_lot = "0.12.3"
ya-sb-proto = {version = "0.6.2"}
ya-sb-router = {version = "0.6.4"}
ya-sb-util = {version = "0.5.1"}
ya-service-bus = {version = "0.7.3", features = ['tls']}
# true version is given in patches section
ya-client = "0.9"
# true version is given in patches section
ya-client-model = "0.7"

[patch.crates-io]
## SERVICES
ya-activity = {path = "core/activity"}
ya-dummy-driver = {path = "core/payment-driver/dummy"}
ya-erc20-driver = {path = "core/payment-driver/erc20"}
ya-gsb-api = {path = "core/gsb-api"}
ya-identity = {path = "core/identity"}
ya-market = {path = "core/market"}
ya-market-resolver = {path = "core/market/resolver"}
ya-net = {path = "core/net"}
ya-payment = {path = "core/payment"}
ya-payment-driver = {path = "core/payment-driver/base"}
ya-sgx = {path = "core/sgx"}
ya-version = {path = "core/version"}
ya-vpn = {path = "core/vpn"}

## CORE UTILS
ya-core-model = {path = "core/model"}
ya-persistence = {path = "core/persistence"}
ya-service-api = {path = "core/serv-api"}
ya-service-api-derive = {path = "core/serv-api/derive"}
ya-service-api-interfaces = {path = "core/serv-api/interfaces"}
ya-service-api-web = {path = "core/serv-api/web"}

## CLIENT
ya-client = {git = "https://github.com/golemfactory/ya-client.git", rev = "dacad31b5bbd039b8ffc97adb70696655d0872ad"}
#ya-client = { path = "../ya-client" }
ya-client-model = {git = "https://github.com/golemfactory/ya-client.git", rev = "dacad31b5bbd039b8ffc97adb70696655d0872ad"}
#ya-client-model = { path = "../ya-client/model" }
golem-certificate = {git = "https://github.com/golemfactory/golem-certificate.git", rev = "952fdbd47adc57e46b7370935111e046271ef415"}
mime = "0.3.17"
ya-client = { git = "https://github.com/golemfactory/ya-client.git", rev = "60327ddaaea289ecf45836c1e242e15855d71dc5" }
ya-client-model = { git = "https://github.com/golemfactory/ya-client.git", rev = "60327ddaaea289ecf45836c1e242e15855d71dc5" }

## RELAY and networking stack
ya-compile-time-utils.path = "utils/compile-time-utils"
ya-manifest-utils = { path = "utils/manifest-utils" }
ya-std-utils = { path = "utils/std-utils" }
ya-diesel-utils.path = "utils/diesel-utils"
ya-utils-actix.path = "utils/actix_utils"
ya-core-model = { path = "core/model" }
ya-utils-path.path = "utils/path"
ya-utils-process.path = "utils/process"

#ya-relay-stack = { path = "../ya-relay/crates/stack" }
#ya-relay-client = { path = "../ya-relay/client" }
#ya-relay-core = { path = "../ya-relay/crates/core" }
#ya-relay-proto = { path = "../ya-relay/crates/proto" }
ya-identity.path = "core/identity"
ya-market.path="core/market"
ya-activity.path = "core/activity"
ya-net.path = "core/net"
ya-persistence.path = "core/persistence"
ya-payment.path = "core/payment"
ya-metrics.path = "core/metrics"
ya-manifest-test-utils.path = "utils/manifest-utils/test-utils"
ya-vpn.path = "core/vpn"
ya-gsb-api.path = "core/gsb-api"

## OTHERS
gftp = {path = "core/gftp"}
tokio-process-ns = {path = "exe-unit/tokio-process-ns"}
ya-agreement-utils = {path = "utils/agreement-utils"}
ya-compile-time-utils = {path = "utils/compile-time-utils"}
ya-counters = {path = "exe-unit/components/counters"}
ya-diesel-utils = {path = "utils/diesel-utils"}
ya-exe-unit = {path = "exe-unit"}
ya-file-logging = {path = "utils/file-logging"}
ya-gsb-http-proxy = {path = "exe-unit/components/gsb-http-proxy"}
ya-manifest-utils = {path = "utils/manifest-utils"}
ya-metrics = {path = "core/metrics"}
ya-provider = {path = "agent/provider"}
ya-std-utils = {path = "utils/std-utils"}
ya-transfer = {path = "exe-unit/components/transfer"}
ya-utils-actix = {path = "utils/actix_utils"}
ya-utils-cli = {path = "utils/cli"}
ya-utils-networking = {path = "utils/networking"}
ya-utils-path = {path = "utils/path"}
ya-utils-process = {path = "utils/process"}
ya-payment-driver.path = "core/payment-driver/base"
ya-dummy-driver.path= "core/payment-driver/dummy"
ya-erc20-driver.path = "core/payment-driver/erc20"

## TEST UTILS
ya-framework-basic = {path = "test-utils/test-framework/framework-basic"}
ya-framework-macro = {path = "test-utils/test-framework/framework-macro"}
ya-framework-mocks = {path = "test-utils/test-framework/framework-mocks"}
ya-manifest-test-utils = {path = "utils/manifest-utils/test-utils"}
ya-test-framework = {path = "test-utils/test-framework"}
ya-service-api.path = "core/serv-api"
ya-service-api-derive.path = "core/serv-api/derive"
ya-service-api-interfaces.path = "core/serv-api/interfaces"
ya-service-api-web.path = "core/serv-api/web"

ethereum-tx-sign = {git = "https://github.com/golemfactory/ethereum-tx-sign.git", rev = "1164c74187a9e2947faeaea7dde104c3cdec4195"}
graphene-sgx = {git = " https://github.com/golemfactory/graphene-rust.git", rev = "dbd993ebad7f9190410ea390a589348479af6407"}
ya-framework-macro.path = "test-utils/test-framework/framework-macro"
ya-framework-basic.path = "test-utils/test-framework/framework-basic"
ya-framework-mocks.path = "test-utils/test-framework/framework-mocks"

diesel = {git = "https://github.com/golemfactory/yagna-diesel-patch.git", rev = "a512c66d520a9066dd9a4d1416f9109019b39563"}
[patch.crates-io]
## CLIENT
#ya-client = { git = "https://github.com/golemfactory/ya-client.git", branch = "kek/deploy-volumes" }
ya-client-model = { git = "https://github.com/golemfactory/ya-client.git", rev = "60327ddaaea289ecf45836c1e242e15855d71dc5" }
golem-certificate = { git = "https://github.com/golemfactory/golem-certificate.git", rev = "f2d7514c18fc066e9cfb796090b90f5b27cfe1c6" }
ethereum-tx-sign = { git = "https://github.com/golemfactory/ethereum-tx-sign.git", rev = "1164c74187a9e2947faeaea7dde104c3cdec4195" }
graphene-sgx = { git = " https://github.com/golemfactory/graphene-rust.git", rev = "dbd993ebad7f9190410ea390a589348479af6407" }
diesel = { git = "https://github.com/golemfactory/yagna-diesel-patch.git", rev = "a512c66d520a9066dd9a4d1416f9109019b39563" }

# Speed up builds on macOS (will be default in next rust version probably)
# https://jakedeichert.com/blog/reducing-rust-incremental-compilation-times-on-macos-by-70-percent/
Expand Down
20 changes: 10 additions & 10 deletions agent/provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ path = "src/main.rs"

[dependencies]
ya-agreement-utils = { workspace = true }
ya-manifest-utils = { version = "0.2" }
ya-manifest-utils.workspace = true
ya-client = { workspace = true, features = ['cli'] }
ya-client-model.workspace = true
ya-compile-time-utils = "0.2"
ya-compile-time-utils.workspace = true
ya-core-model = { workspace = true, features = ['activity', 'payment'] }
ya-file-logging = "0.1"
ya-utils-actix = "0.2"
ya-utils-cli = "0.1"
ya-utils-path = "0.1"
ya-utils-process = { version = "0.3", features = ['lock'] }
ya-std-utils = "0.1"
ya-file-logging.workspace = true
ya-utils-actix.workspace = true
ya-utils-cli.workspace = true
ya-utils-path.workspace = true
ya-utils-process = { workspace = true, features = ['lock'] }
ya-std-utils.workspace = true
golem-certificate = "0.1.1"

actix = { version = "0.13", default-features = false }
Expand Down Expand Up @@ -91,8 +91,8 @@ tempdir = "0.3"
tempfile = "3.5.0"
pretty_assertions = "1.3"

ya-manifest-test-utils = "0.1"
ya-framework-basic = "0.1"
ya-manifest-test-utils.workspace = true
ya-framework-basic.workspace = true

[lints]
workspace = true
10 changes: 5 additions & 5 deletions core/activity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ edition = "2018"
[dependencies]
ya-core-model = { workspace = true, features = ["activity", "market"] }
ya-client-model = { workspace = true, features = ["sgx"] }
ya-net = "0.3"
ya-persistence = "0.3"
ya-service-api = "0.1"
ya-service-api-interfaces = "0.2"
ya-service-api-web = "0.2"
ya-net.workspace = true
ya-persistence.workspace = true
ya-service-api.workspace = true
ya-service-api-interfaces.workspace = true
ya-service-api-web.workspace = true
ya-service-bus = { workspace = true }
ya-gsb-http-proxy = { path = "../../exe-unit/components/gsb-http-proxy" }

Expand Down
2 changes: 1 addition & 1 deletion core/gftp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = "gftp"
required-features = ['bin']

[dependencies]
ya-compile-time-utils = "0.2"
ya-compile-time-utils.workspace = true
ya-core-model = { workspace = true, features = ["gftp", "identity", "net"] }
ya-service-bus = { workspace = true }

Expand Down
8 changes: 4 additions & 4 deletions core/gsb-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ edition = "2018"

[dependencies]
ya-client-model.workspace = true
ya-persistence = "0.3"
ya-service-api = "0.1"
ya-service-api-interfaces = "0.2"
ya-service-api-web = "0.2"
ya-persistence.workspace = true
ya-service-api.workspace = true
ya-service-api-interfaces.workspace = true
ya-service-api-web.workspace = true
ya-service-bus = { workspace = true }

actix = "0"
Expand Down
14 changes: 7 additions & 7 deletions core/identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ framework-test = []
[dependencies]
ya-client-model = { workspace = true, features = ["with-diesel"] }
ya-core-model = { workspace = true, features = ["identity", "appkey"] }
ya-persistence = "0.3"
ya-service-api = "0.1"
ya-service-api-interfaces = "0.2"
ya-persistence.workspace = true
ya-service-api.workspace = true
ya-service-api-interfaces.workspace = true
ya-service-bus = { workspace = true }

anyhow = "1.0"
Expand All @@ -41,10 +41,10 @@ rustc-hex = "2.1.0"
yansi = "0.5.0"

[dev-dependencies]
ya-service-api-derive = "0.2"
ya-service-api-derive.workspace = true
ya-sb-router = { workspace = true }
ya-framework-basic = { version = "0.1" }
ya-framework-mocks = { version = "0.1" }
ya-framework-basic.workspace = true
ya-framework-mocks.workspace = true

actix-rt = "2.7"
actix-service = "2"
Expand All @@ -57,4 +57,4 @@ serial_test = { git = "https://github.com/tworec/serial_test.git", branch = "act
test-context = "0.1.4"

[lints]
workspace = true
workspace = true
Loading

0 comments on commit b6cddc4

Please sign in to comment.