Watches over your Cargo project's source.
-N
/ desktop notifications are disabled on FreeBSD (#184)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.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.
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.-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.insta
test helper to maybe help on the cross-platform front (#170)--shell
option--why
switchcargo watch -- command...
syntax style. That should make it a little more intuitive to those used to comparable unix tools.