Add cargo watch for hot reload cargo install cargo-watch then run this command to run cargo watch in src directory cargo watch -q -c -w src/ -x run