From f1fe11a0c9eceae2962d8acd8581dee5b08a186a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Thu, 31 Oct 2024 14:08:57 +0200 Subject: [PATCH 1/3] chore: make cargo-near-build optional in manifest --- workspaces/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspaces/Cargo.toml b/workspaces/Cargo.toml index 1b687882..5a7ae155 100644 --- a/workspaces/Cargo.toml +++ b/workspaces/Cargo.toml @@ -14,7 +14,7 @@ async-trait = "0.1" base64 = "0.22" bs58 = "0.5" cargo_metadata = { version = "0.18", optional = true } -cargo-near-build = { version = "0.2.0" } +cargo-near-build = { version = "0.2.0", optional = true } chrono = "0.4.19" fs2 = "0.4" rand = "0.8.4" @@ -59,7 +59,7 @@ tracing-subscriber = { version = "0.3.5", features = ["env-filter"] } default = ["install"] install = [] # Install the sandbox binary during compile time interop_sdk = ["near-sdk"] -unstable = ["cargo_metadata"] +unstable = ["cargo_metadata", "dep:cargo-near-build"] experimental = ["near-chain-configs"] [package.metadata.docs.rs] From b701812303708fbd398d38312f6720f296e0c50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Thu, 31 Oct 2024 16:09:50 +0200 Subject: [PATCH 2/3] chore: add dep: for cargo_metadata too --- workspaces/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspaces/Cargo.toml b/workspaces/Cargo.toml index 5a7ae155..90ebf08b 100644 --- a/workspaces/Cargo.toml +++ b/workspaces/Cargo.toml @@ -57,9 +57,9 @@ tracing-subscriber = { version = "0.3.5", features = ["env-filter"] } [features] default = ["install"] -install = [] # Install the sandbox binary during compile time +install = [] # Install the sandbox binary during compile time interop_sdk = ["near-sdk"] -unstable = ["cargo_metadata", "dep:cargo-near-build"] +unstable = ["dep:cargo_metadata", "dep:cargo-near-build"] experimental = ["near-chain-configs"] [package.metadata.docs.rs] From d296e8211a7df80f3fff58be6ef9619835a2a67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Thu, 31 Oct 2024 16:14:35 +0200 Subject: [PATCH 3/3] chore: remove unused `cargo_metadata` --- workspaces/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspaces/Cargo.toml b/workspaces/Cargo.toml index 90ebf08b..1119c5e2 100644 --- a/workspaces/Cargo.toml +++ b/workspaces/Cargo.toml @@ -13,7 +13,6 @@ Library for automating workflows and testing NEAR smart contracts. async-trait = "0.1" base64 = "0.22" bs58 = "0.5" -cargo_metadata = { version = "0.18", optional = true } cargo-near-build = { version = "0.2.0", optional = true } chrono = "0.4.19" fs2 = "0.4" @@ -59,7 +58,7 @@ tracing-subscriber = { version = "0.3.5", features = ["env-filter"] } default = ["install"] install = [] # Install the sandbox binary during compile time interop_sdk = ["near-sdk"] -unstable = ["dep:cargo_metadata", "dep:cargo-near-build"] +unstable = ["dep:cargo-near-build"] experimental = ["near-chain-configs"] [package.metadata.docs.rs]