Watches over your Cargo project's source.
CC0-1.0 License
Bot releases are visible (Hide)
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.Published by github-actions[bot] 10 months ago
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.Published by github-actions[bot] 10 months ago
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)Published by passcod about 1 year ago
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)Published by passcod over 1 year ago
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!
Published by passcod almost 2 years ago
--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)Published by passcod almost 2 years ago
Published by passcod almost 2 years ago
Published by github-actions[bot] almost 2 years ago
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.Published by github-actions[bot] almost 3 years ago
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.
Published by github-actions[bot] about 3 years ago
-N
/ desktop notifications are disabled on FreeBSD (#184)Published by github-actions[bot] about 3 years ago
Yanked from crates.io on 2022-01-22
-B
option injects RUST_BACKTRACE
into the environment, which is a fairly common thing to do when catching panics. Use like: cargo watch -B1 -x run
(tweet)rust-version
field is now used in the Cargo.toml. This will generate a warning when compiling until rustc 1.56.Published by github-actions[bot] about 3 years ago
Never released to crates.io
Breaking change: #177 the order of (This never actually happened. The code was not merged.)-x
and -s
is now respected.
Example: cargo watch -s 'echo before' -x test -s 'echo after'
Before: would run cargo test && echo before && echo after
.
Now: runs echo before && cargo test && echo after
.
Experimental: --notify
/-N
flag sends a desktop notification when a change is observed (which may or may not trigger a command restart). While objectively the better behaviour would be to notify on command finish and vary the notification on exit status, we just can't do that at the moment with the current architecture.
Published by github-actions[bot] over 3 years ago
globset
crate to version 0.4.6. While not a good long-term fix, this fixes issues installing via cargo install cargo-watch
yielding buggy (#176) builds without --locked
.sha512sum
or b3sum
tools, as well as being a bit ambiguous. In this release, checksums go in separate files, one for each checksum algorithm; these files are also signed separately. I also retroactively fixed that in the 7.8.0 release. The release download list on GitHub is becoming quite long! The one on the website is a lot easier to use..tar.zst
) at some point in the future, probably around version 8.Published by github-actions[bot] over 3 years ago
-C
/--workdir
option to change the working directory to a custom location. Note that this will behave very strangely in combination with other path options (like -w
/--watch
) until real support is added upstream, cf watchexec/watchexec#188.Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
insta
test helper to maybe help on the cross-platform front (#170)Published by github-actions[bot] over 3 years ago
--shell
option--why
switchPublished by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
cargo watch -- command...
syntax style. That should make it a little more intuitive to those used to comparable unix tools.