Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rust cargo build on change

# Intall: cargo watch
cargo install cargo-watch
# And then run:
cargo watch -x run

# And to watch changes in only the src folder and clear the console use:
cargo watch -c -w src -x run
# More at https://github.com/watchexec/cargo-watch#readme
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rust #cargo #build #change
ADD COMMENT
Topic
Name
8+4 =