From 13d7a0c853d656ff4320f989c2f34ba436a6d627 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 12:05:56 +0000 Subject: [PATCH] fix(js-runtimes): make the crate its own Cargo workspace root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Governance's "JS runtimes — environment provisions Bun first" job checks standards out at .standards-js/ inside the calling repository and runs `cargo install --path .standards-js/tools/js-runtimes`. When the caller is itself a Cargo workspace, cargo refuses the nested package: error: current package believes it's in a workspace when it's not Measured on hyperpolymath/proof-burrower#116 (job 118046337412), the first caller re-pinned to 75bd5994; echidna and echidnabot are Cargo workspaces too. An empty [workspace] table, cargo's own suggested fix, keeps the crate out of any enclosing workspace. Standards has no root Cargo.toml, so its own build is unchanged. Reproduced locally: proof-burrower main with tools/js-runtimes at .standards-js/ — `cargo metadata --manifest-path` exits 101 with the CI error before, 0 after. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019a95kk88TZ1iegsBK3kox3 --- tools/js-runtimes/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/js-runtimes/Cargo.toml b/tools/js-runtimes/Cargo.toml index 451dcb990..b2a9b5846 100644 --- a/tools/js-runtimes/Cargo.toml +++ b/tools/js-runtimes/Cargo.toml @@ -20,3 +20,9 @@ path = "src/main.rs" # I-JSON (RFC 7493) + JCS (RFC 8785), in-process (owner ruling D306). # Pinned by commit: ijson-jcs has no releases yet. ijson-jcs = { git = "https://github.com/hyperpolymath/ijson-jcs", rev = "3a9a4ee326a968a32b2f152b4faec243a2d00765" } + +# Its own workspace root. Governance checks standards out at .standards-js/ +# inside the calling repository, which may itself be a Cargo workspace +# (proof-burrower, echidna, echidnabot); without this table cargo refuses the +# build ("current package believes it's in a workspace when it's not"). +[workspace]