Skip to content

Commit fc7b636

Browse files
avrabeclaude
andcommitted
fix(deps): bump rules_rust minimum to 0.58.0 for current Bazel
rules_rust 0.56.0 used the Bazel built-in `CcInfo` symbol, which current Bazel has removed — module evaluation fails when consumers pick up our minimum and don't override rules_rust themselves. 0.58.0 was the first release to load `CcInfo` from `@rules_cc//cc/common:cc_info.bzl`, so it works on current Bazel. This was forcing pulseengine/rivet to mark Verus CI as `continue-on-error: true` (see rivet/.github/workflows/ci.yml:399). With this bump that workaround can be removed. Verified: `bazel build //tools/verus-strip:verus-strip` succeeds with the new minimum (verus-strip is the only thing rules_verus itself uses rules_rust for). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5e2b7c6 commit fc7b636

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

MODULE.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ bazel_dep(name = "platforms", version = "0.0.10")
1818
# Low minimum version: consumers control their own rules_rust version.
1919
# Consumers MUST register a Rust toolchain that includes the version
2020
# matching Verus's rust_verify (see rust_version in extensions.bzl).
21-
bazel_dep(name = "rules_rust", version = "0.56.0")
21+
#
22+
# Minimum 0.58.0: earlier releases used the Bazel built-in `CcInfo`
23+
# symbol, which was removed from current Bazel. 0.58.0 was the first
24+
# release to load `CcInfo` from `@rules_cc//cc/common:cc_info.bzl`.
25+
# Pinning lower forced consumers (e.g. pulseengine/rivet) to mark Verus
26+
# CI as continue-on-error since the load failed at module evaluation.
27+
bazel_dep(name = "rules_rust", version = "0.58.0")
2228

2329
# Crate dependencies for verus-strip
2430
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ sysroot (`librustc_driver`, `libstd`, etc.) alongside the Verus binaries. This m
306306
Verus was built against
307307
- **Full sandbox support** — all files are available as Bazel inputs
308308
- **`rules_rust` is only needed for `verus_strip`** (building from source via `crate_universe`),
309-
and uses a low minimum version (`>= 0.56.0`) to avoid conflicts
309+
and uses a low minimum version (`>= 0.58.0`) to avoid conflicts.
310+
The 0.58.0 floor is required because earlier releases used the Bazel
311+
built-in `CcInfo` symbol that current Bazel has removed.
310312

311313
## License
312314

0 commit comments

Comments
 (0)