mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
Update the Rust nightly toolchain from nightly/2025-08-01 to nightly/2026-01-22 (rustc 1.95.0-nightly), and rules_rust from 0.66.0 to 0.68.1.codeql.1. The new nightly changed how stdlib metadata is distributed: .rlib files now contain only a metadata stub, with full metadata in separate .rmeta files. rules_rust's stdlib glob doesn't include *.rmeta, causing 'only metadata stub found' errors. This is patched via a custom registry entry (0.68.1.codeql.1). Upstream bug: https://github.com/bazelbuild/rules_rust/issues/3859
Versions to be patched can be taken from https://github.com/bazelbuild/bazel-central-repository. After adding patches
inside <repo>/<version>/patches, and eventually renaming <version>, run fix.py to align all metadata
to the renamed version and added patches.