When pulling in value-bag as a dependency with cargo-raze-0.15.0, an alias from Cargo.toml gets included in the generated rust_library rule, but it should apply to the generated cargo_build_script rule.
This does not build correctly, as build.rs expects a crate named rustc, which is an alias of version_check. Moving the aliases section from the rust_library rule to the cargo_build_script rule fixes this:
When pulling in value-bag as a dependency with cargo-raze-0.15.0, an alias from Cargo.toml gets included in the generated
rust_library
rule, but it should apply to the generatedcargo_build_script
rule.The dependency is declared in value-bag's Cargo.toml: https://github.com/sval-rs/value-bag/blob/v1.0.0-alpha.8/Cargo.toml#L100-L102
The generated bazel rules:
This does not build correctly, as
build.rs
expects a crate namedrustc
, which is an alias ofversion_check
. Moving thealiases
section from therust_library
rule to thecargo_build_script
rule fixes this:Cargo-raze should generate aliases for build-dependencies in the
cargo_build_script
, but they are currently generated in therust_library
rule.