Skip to content

Commit 875e8aa

Browse files
committed
Include *.rmeta files in stdlib sysroot glob
Starting around nightly 2026-01-22, the Rust distribution ships stdlib .rlib files as metadata stubs, with the full metadata in separate .rmeta files. Add *.rmeta to the _build_file_for_stdlib_template glob so these files are included in the Bazel sysroot. Fixes #3859
1 parent 42b098b commit 875e8aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/private/repository_utils.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ rust_stdlib_filegroup(
280280
srcs = glob(
281281
[
282282
"lib/rustlib/{target_triple}/lib/*.rlib",
283+
"lib/rustlib/{target_triple}/lib/*.rmeta",
283284
"lib/rustlib/{target_triple}/lib/*{dylib_ext}*",
284285
"lib/rustlib/{target_triple}/lib/*{staticlib_ext}",
285286
"lib/rustlib/{target_triple}/lib/self-contained/**",

0 commit comments

Comments
 (0)