From a10f9c62fdb2047d15e49241068c89f16964dfb1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:42:51 +0000 Subject: [PATCH] infra: centralize shared dependencies in [workspace.dependencies] Centralized common package metadata (edition, license, repository) and the soroban-sdk dependency in the root Cargo.toml workspace configuration. Updated apexchainx_calculator to inherit these properties. Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com> --- Cargo.toml | 8 ++++++++ apexchainx_calculator/Cargo.toml | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 03204ee..476f06f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,11 @@ [workspace] members = ["apexchainx_calculator"] resolver = "2" + +[workspace.package] +edition = "2021" +license = "MIT" +repository = "https://github.com/ApexChainx/ApexChainx-Contracts" + +[workspace.dependencies] +soroban-sdk = "21.1.0" diff --git a/apexchainx_calculator/Cargo.toml b/apexchainx_calculator/Cargo.toml index d093845..59783ad 100644 --- a/apexchainx_calculator/Cargo.toml +++ b/apexchainx_calculator/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "apexchainx_calculator" version = "0.1.0" -edition = "2021" +edition.workspace = true description = "Soroban SLA calculator contract for the ApexChainx system" -license = "MIT" -repository = "https://github.com/ApexChainx/ApexChainx-Contracts" +license.workspace = true +repository.workspace = true publish = false [lib] @@ -14,7 +14,7 @@ crate-type = ["cdylib"] default = [] [dependencies] -soroban-sdk = { version = "21.1.0", features = ["alloc"] } +soroban-sdk = { workspace = true, features = ["alloc"] } [dev-dependencies] -soroban-sdk = { version = "21.1.0", features = ["testutils", "alloc"] } +soroban-sdk = { workspace = true, features = ["testutils", "alloc"] }