bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
656 stars 419 forks source link

Update crate universe to generate build script targets with compile data #2855

Closed UebelAndre closed 2 weeks ago

UebelAndre commented 2 weeks ago

https://github.com/bazelbuild/rules_rust/pull/2826 ended up introducing a regression for crates with build scripts that require extra data at compile time. This change adds a default glob for all cargo_build_script targets generated by crate_universe and also introduces an annotation.build_script_compile_data attribute to add custom targets to generated outputs.