Improve build cache handling that does not rely on Cargo build-plan feature #2234
Labels
[C] Internal
Tracks some internal work. I.e.: Users should not be affected.
Milestone
Proposed change: I don't have a great solution for this; thus, I decided to use the Cargo's
--build-plan
feature for now. However, we need to figure out a more robust solution for the long term.Ideally, we should use some API provided by Cargo.
Motivation: Build plan seems to be deprecated (rust-lang/cargo#7614), so we need a better solution ASAP. I posted a comment asking for some guidance: rust-lang/cargo#7614 (comment)
As I mentioned in the comment, I was hoping to use compiler artifact messages for that, but unfortunately the information provided is incomplete. I tried to extract the artifact name from the artifact messages, but for things like binaries, static / shared libraries, the list of filenames do not include the original files that were generated by the compiler.
E.g.: For a static library, this is what I get:
while for a rust library, I get:
On the other hand,
cargo build --build-plan
includes the name of the file:The text was updated successfully, but these errors were encountered: