Include link_deps in Rust runfiles (#4204) ## Summary - merge default runfiles from `link_deps` into Rust target runfiles - include dynamic libraries supplied through `link_deps` alongside those from `deps` ## Why `link_deps` participates in native linking, but its runfiles and dynamic libraries were omitted when `rustc_compile_action` assembled runtime files. Binaries and library targets that link native dependencies through `link_deps` could therefore be built successfully while missing required runtime artifacts. ## Impact Rust binaries, `cdylib`s, and `staticlib`s now carry the runtime files needed by dependencies declared through `link_deps`. ## Validation - `bazel test //test/unit/link_deps:all` - `git diff --check`
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.