Watches over your Cargo project's source.
Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
cargo watch -- cargo clippy
syntax.Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
cargo watch clippy
with no arguments.Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
Announce: https://cohost.org/watchexec/post/4074115-cargo-watch-8-5-0
-x
-less syntax for select cargo subcommands, e.g. cargo watch clippy
(#297)-x
(#296 by @pseyfert)Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
rustc-ice-*
logs by default (#277)Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
--use-shell=none
when using a trailing command (not with -x
or -s
). Note that this requires the trailing command not be quoted in full.--no-process-group
to disable using a process group for the command.Comment on the issue above if this would affect you!
--env-file
option to read environment variables from file, like a .env
. Note that .env
files are not automatically loaded, you do need to provide the option. (#235, #236)-L
, -E
, --env-var
to manpage and completions file. (#236)Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
--skip-local-deps
. (#117, #216)-E
, --env
option to inject environment variables to the commands.-L value
is a shorthand for --env RUST_LOG=value
.--clear
falls back to a hardcoded escape sequence when a Terminfo database isn't available. (#218)cargo watch -- command
), the [Finished running]
message won't be emitted. This is to offer a (temporary) workaround when using a shell that doesn't like the &&
joining that this message usually uses. See #203.--no-gitignore
is renamed to --no-vcs-ignores
, but keeps the old name as an alias.--no-ignore
is renamed to --no-dot-ignores
, for clarity, but keeps the old name as an alias.Cargo Watch is a tool to watch your Cargo-based project and run commands when files change. It focuses on the Rust development experience and aims to be flexible enough to suit most without becoming complicated to use. Install or upgrade it today with cargo binstall cargo-watch
, or cargo install cargo-watch
if you don't have Binstall yet.
This release was missing from crates.io until 2022-07-08.