Closed
Description
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.
Suggestion
Build scripts should output cargo:depends=/path/to/file
just like they output rustc-flags
. Only modifications in the files which they depend upon, plus the build script itself and its modules, trigger a recompilation.
Metadata
Metadata
Assignees
Labels
No labels