Skip to content

Instantly share code, notes, and snippets.

@travishorn
Created April 17, 2023 03:39
Show Gist options
  • Select an option

  • Save travishorn/b971d823af3b5c714e7a0fcbaeeff99d to your computer and use it in GitHub Desktop.

Select an option

Save travishorn/b971d823af3b5c714e7a0fcbaeeff99d to your computer and use it in GitHub Desktop.

Revisions

  1. travishorn created this gist Apr 17, 2023.
    8 changes: 8 additions & 0 deletions cargo-watch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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