When cargo builds a build.rs crate, it seems to use the same crate name of build-rs-build and empty disambiguation metadata. This causes problems for rustc's incremental compilation system, since the data for each such crate conflicts. Any kind of unique scheme would be fine (for example, the metadata could identify the crate for which the build.rs is being built).
cc @michaelwoerister
When cargo builds a
build.rscrate, it seems to use the same crate name ofbuild-rs-buildand empty disambiguation metadata. This causes problems for rustc's incremental compilation system, since the data for each such crate conflicts. Any kind of unique scheme would be fine (for example, the metadata could identify the crate for which thebuild.rsis being built).cc @michaelwoerister