Skip to content

Support platform-specific crate annotations - #226

Open
finn-ball wants to merge 1 commit into
hermeticbuild:mainfrom
finn-ball:finn/crate-annotation-platform-controls
Open

Support platform-specific crate annotations#226
finn-ball wants to merge 1 commit into
hermeticbuild:mainfrom
finn-ball:finn/crate-annotation-platform-controls

Conversation

@finn-ball

@finn-ball finn-ball commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add platform-selectable deps, link_deps, and target_compatible_with to crate annotations
  • resolve native link_deps as labels in the module that declares the annotation
  • allow exact removal of generated normal and build-script dependencies
  • preserve rustc-source repository compatibility and document the new controls
  • add focused unit coverage plus generated-repository integration tests for selected and removed dependencies

Why

Cargo metadata sometimes needs Bazel-specific platform corrections or dependency replacement without patching generated repositories. Label-typed native dependencies preserve repository identity when annotations are declared outside the generated crate repository.

@finn-ball
finn-ball marked this pull request as ready for review August 18, 2026 16:16
@finn-ball
finn-ball force-pushed the finn/crate-annotation-platform-controls branch from 8a950a5 to 7279746 Compare August 18, 2026 16:18
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