Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cargo should not consider the build script as stale with every modification #1162
When a package has a build script and you modify any file in your project, everything gets recompiled.
I'm currently working on a library named glium which is starting be have a moderate size and which uses build scripts only for code generation.
Modifying the code of an example or a test and running "cargo build" recompiles everything, which takes 3-4 minutes on my machine. Due to this, it's very annoying to write tests or examples.
Build scripts should output
This seems like a pretty great use of the metadata output to me, I like the idea!
I would add one caveat that if
@marcusklaas yeah I think this should be relatively easy. You'd want to add parsing code for this key being printed out first. Next you'd want to serialize it out to a custom location (probably something in the relevant fingerprint directory).
You'd then update the build script fingerprint routine to take this file into account.