godot-rust-template icon indicating copy to clipboard operation
godot-rust-template copied to clipboard

Support incremental compilation

Open Nashenas88 opened this issue 3 years ago • 3 comments

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.

Nashenas88 avatar Dec 10 '22 02:12 Nashenas88

Hi @Nashenas88, thank you for pointing out about incremental compilation in rust. Can you explain a bit more about the [[ issue?

macalimlim avatar Dec 13 '22 07:12 macalimlim

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

ethereumdegen avatar Mar 16 '23 21:03 ethereumdegen

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

macalimlim avatar Nov 05 '23 00:11 macalimlim