Add missing rustc binaries to rustc_lib filegroup (#3727)

## Summary

Add `rust-objcopy` and `wasm-component-ld` to the `rustc_lib` filegroup
in `repository_utils.bzl`. These binaries are present in recent rustc
distributions (wasm-component-ld since 1.82.0, rust-objcopy since
1.84.0) but were not previously declared.

### Changes

- **Binary Declaration**: Add `rust-objcopy{binary_ext}` and
`wasm-component-ld{binary_ext}` to the rustc_lib filegroup glob patterns

### Context

On Windows, Bazel copies files into the sandbox rather than symlinking,
so only explicitly listed files are available. This caused wasm32-wasip2
builds to fail with `linker 'wasm-component-ld.exe' not found`.

On Linux/macOS, the issue was masked by symlink-based sandboxing which
allowed rustc to access unlisted files in the same directory.

---------

Co-authored-by: UebelAndre <github@uebelandre.com>
3 files changed
tree: 05c3d7b447fddbc52a5645b11392b5d05e2543a9
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. cargo/
  5. crate_universe/
  6. docs/
  7. examples/
  8. extensions/
  9. ffi/
  10. nix/
  11. rust/
  12. test/
  13. tools/
  14. util/
  15. .bazelignore
  16. .bazelrc
  17. .bazelversion
  18. .clang-format
  19. .clippy.toml
  20. .envrc
  21. .gitattributes
  22. .gitignore
  23. .pre-commit-config.yaml
  24. .prettierrc.toml
  25. .rustfmt.toml
  26. .typos.toml
  27. ARCHITECTURE.md
  28. AUTHORS
  29. BUILD.bazel
  30. CODEOWNERS
  31. COMPATIBILITY.md
  32. CONTRIBUTING.md
  33. CONTRIBUTORS
  34. LICENSE.txt
  35. MODULE.bazel
  36. README.md
  37. version.bzl
  38. WORKSPACE.bazel
  39. WORKSPACE.bzlmod
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Starter repo

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.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.