From df76ee03e26c155b5715b48537116354baa6cce4 Mon Sep 17 00:00:00 2001 From: Ross Delinger Date: Sat, 14 Feb 2026 14:40:29 -0800 Subject: [PATCH] Add support for stdlibs that were compiled with -Zno-embed-metadata As of nightly 2026-01-14 the rust stdlib is compiled using -Zno-embed-metadata. This removes the rmeta data from .rlib object files. Fixing this means we need to include the .rmeta files in the stdlib file group. Breaking change in rustc: https://github.com/rust-lang/rust/pull/145343 Context on -Zno-embed-metadata: https://github.com/rust-lang/cargo/pull/15378 --- rust/private/repository_utils.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/private/repository_utils.bzl b/rust/private/repository_utils.bzl index 05b741947d..f88074af65 100644 --- a/rust/private/repository_utils.bzl +++ b/rust/private/repository_utils.bzl @@ -280,6 +280,7 @@ rust_stdlib_filegroup( srcs = glob( [ "lib/rustlib/{target_triple}/lib/*.rlib", + "lib/rustlib/{target_triple}/lib/*.rmeta", "lib/rustlib/{target_triple}/lib/*{dylib_ext}*", "lib/rustlib/{target_triple}/lib/*{staticlib_ext}", "lib/rustlib/{target_triple}/lib/self-contained/**",