Skip to content

Instantly share code, notes, and snippets.

@travishorn
Created April 17, 2023 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travishorn/b971d823af3b5c714e7a0fcbaeeff99d to your computer and use it in GitHub Desktop.
Save travishorn/b971d823af3b5c714e7a0fcbaeeff99d to your computer and use it in GitHub Desktop.
Cargo Watch - Reload and run Rust code on change
cargo watch -c -w src -x run
# -c : Clear the terminal before each reload
# -w : Which files to watch
# -x : What command to execute
# cargo-watch must be installed.
cargo install cargo-watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment