From 049c0adb5274acea4eb615819180fd010bce48b5 Mon Sep 17 00:00:00 2001 From: Sid Jain Date: Wed, 2 Sep 2026 12:04:52 +0000 Subject: [PATCH] fix(release): use workspace perf dependencies --- tools/perf/runner/Cargo.toml | 4 ++-- tools/policy/check-native-boundaries.mjs | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/perf/runner/Cargo.toml b/tools/perf/runner/Cargo.toml index ced0728ea..5c10adf48 100644 --- a/tools/perf/runner/Cargo.toml +++ b/tools/perf/runner/Cargo.toml @@ -15,8 +15,8 @@ rust-api-model-wasix = ["rust-api-model", "dep:oliphaunt-wasix"] [dependencies] anyhow = "1" futures-util = "0.3" -oliphaunt = { version = "0.1.1", path = "../../../src/sdks/rust" } -oliphaunt-wasix = { version = "0.1.1", path = "../../../src/bindings/wasix-rust/crates/oliphaunt-wasix", optional = true } +oliphaunt = { path = "../../../src/sdks/rust" } +oliphaunt-wasix = { path = "../../../src/bindings/wasix-rust/crates/oliphaunt-wasix", optional = true } rusqlite = { version = "0.37", features = ["bundled"] } serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/tools/policy/check-native-boundaries.mjs b/tools/policy/check-native-boundaries.mjs index 79114c8f3..dec0f060f 100644 --- a/tools/policy/check-native-boundaries.mjs +++ b/tools/policy/check-native-boundaries.mjs @@ -179,6 +179,14 @@ function checkToolCrateBoundaries() { errors.push(`tools/perf/runner/Cargo.toml must own benchmark dependency ${JSON.stringify(depName)}`); } } + for (const [depName, spec] of Object.entries(perfDependencies)) { + if (isPlainObject(spec) && typeof spec.path === 'string' && 'version' in spec) { + errors.push( + `tools/perf/runner/Cargo.toml path dependency ${JSON.stringify(depName)} must not declare a registry version; ` + + 'the unpublished perf runner must resolve the checked-out workspace source', + ); + } + } const wasixRunner = new Set(Array.isArray(features['wasix-runner']) ? features['wasix-runner'] : []); for (const depName of ['dep:wasmer', 'dep:wasmer-wasix', 'dep:webc']) {