Skip to content

Commit df6230c

Browse files
dj8yfodj8yf0μl
andauthored
chore!: reexport cargo-near-build for configurable build if needed (#386)
PR addresses this TODO near/near-sdk-rs#1253 (comment) , which later ~will be~ has been removed from `near-sdk` code, for cases: 1. when non-async function is required in `static std::sync::OnceLock<T>/LazyLock<T, F>` creation like here https://github.com/dj8yfo/near-sdk-rs/blob/7be211e1b2991f6c5b4db78972784dac2f066e32/examples/fungible-token/tests/workspaces.rs#L47 2. when non-default build is required like with `no-abi` here https://github.com/dj8yfo/abstract-dao/blob/fe9d16797bf582f0ea24380c1e4ad6bdb8c97283/tests/common.rs#L33 PR avoids necessity to import `cargo-near-build` separately as a dependency PR should best be published with a major release, to avoid weird breakage `0.14.1 -> 0.14.x` Co-authored-by: dj8yf0μl <[email protected]>
1 parent 0f44e0b commit df6230c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

workspaces/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Library for automating workflows and testing NEAR smart contracts.
1313
async-trait = "0.1"
1414
base64 = "0.22"
1515
bs58 = "0.5"
16-
cargo-near-build = { version = "0.2.0", optional = true }
16+
cargo-near-build = { version = "0.3.0", optional = true }
1717
chrono = "0.4.19"
1818
fs2 = "0.4"
1919
rand = "0.8.4"

workspaces/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
mod cargo;
1111
#[cfg(feature = "unstable")]
1212
pub use cargo::compile_project;
13+
#[cfg(feature = "unstable")]
14+
pub use cargo_near_build;
1315

1416
mod worker;
1517

0 commit comments

Comments
 (0)