Skip to content

Include link_deps in Rust runfiles - #4204

Open
finn-ball wants to merge 1 commit into
bazelbuild:mainfrom
finn-ball:agent/include-link-deps-in-runfiles
Open

Include link_deps in Rust runfiles#4204
finn-ball wants to merge 1 commit into
bazelbuild:mainfrom
finn-ball:agent/include-link-deps-in-runfiles

Conversation

@finn-ball

Copy link
Copy Markdown
Contributor

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, cdylibs, and staticlibs now carry the runtime files needed by dependencies declared through link_deps.

Validation

  • bazel test //test/unit/link_deps:all
  • git diff --check

@finn-ball
finn-ball marked this pull request as ready for review August 4, 2026 17:13
@UebelAndre
UebelAndre requested a review from krasimirgg August 4, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant