March 17, 2022
Autoreload your Rust webserver with rust
When you create a long running application in Rust, you have to recompile your files everytime you make a change.
The first way is to just run
cargo run and Ctrl-C the process then run it again when you want to reload.
A better way is to install cargo-watch, which will do this process automatically when you change a file in your project. You just need to run it with
Read more