bazelbuild / rules_rust

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

crate_universe patches cannot affect "additive_build_file_contents" sections of Cargo.toml files of external dependencies? #3004

Open sthornington opened 1 week ago

sthornington commented 1 week ago

Just want to check my work here -- I'm trying to patch the Cargo.toml of https://github.com/dtolnay/cxx so that the additive_build_file_contents section generates a cc_library section with some additional copts in it (specifically, -fPIC), to test a theory about why it cannot build properly with clang.

However, nothing I seem to do seems to affect what ends up getting done. I think that maybe the additive* section is getting added to cargo-bazel-lock before patches are applied or something? Is that possible?