Support incremental compilation
I notice that iteration on rust code is slow because the cargo make run command cleans the build directory before rebuilding. This is really inefficient and slows down development a lot. Why is this necessary, and is it possible to remove? Removing locally (and fixing the [[ issue) allows the code to rebuild without rebuilding the entire dependency tree.
Hi @Nashenas88, thank you for pointing out about incremental compilation in rust. Can you explain a bit more about the [[ issue?
he means we get this error when we build /tmp/fsio_BDw2bsscEw.sh: 4: [[: not found
also i really want to know how i can do hot reloading with this ? in fact what is ultra bizarre is how do i rebuild at all? when i edit the .rs files and run 'cargo make run' again, it doesnt seem like its actually applying those code changes at all
Hi @Nashenas88 and @ethereumdegen I will be releasing a new version of the template soon with 'clean' removed from the build to take advantage of incremental compilation. I still cannot recreate the issue with '[[', can you share more details about it? Like the OS you are using, rust version, etc. It will be helpful if you could post a screenshot (or even better a video) showing the error. Looking forward to hearing from you. Thanks