Include *.rmeta files in stdlib sysroot glob (#3860) Starting around nightly `2026-01-22` (rustc 1.95.0-nightly), the Rust distribution ships stdlib `.rlib` files as ~440-byte metadata stubs, with full metadata in separate `.rmeta` files alongside them. The [`_build_file_for_stdlib_template`](https://github.com/bazelbuild/rules_rust/blob/42b098b3a891d7425212c39697e436a21fb5399e/rust/private/repository_utils.bzl#L275) glob [only includes `*.rlib`](https://github.com/bazelbuild/rules_rust/blob/42b098b3a891d7425212c39697e436a21fb5399e/rust/private/repository_utils.bzl#L280-L286), so the `.rmeta` files are excluded from the sysroot, causing `error[E0786]: only metadata stub found` errors. This PR adds `*.rmeta` to the glob. Fixes #3859 Co-authored-by: Krasimir Georgiev <krasimir@google.com>
This repository provides rules for building Rust projects with Bazel.
The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.
Please refer to the full documentation.