Skip to content

Releases: watchexec/cargo-watch

v8.5.3

02 Oct 08:34
Compare
Choose a tag to compare

This is the final release of Cargo Watch.


Cargo Watch is now dormant: it will not receive further updates, but does remain available.

I (@passcod) currently have very little time to dedicate to unpaid OSS. There is a significant amount of work I deem required to get Watchexec (the library) to a good-enough state to bring its improvements to Cargo Watch, and that has been the case for years without a realistic end in sight. I have had dwindling motivation in the face of having spent 10 years on or around this project and its dependencies (it was a long while ago, but once upon a time the Notify library was spun off from Cargo Watch!), when at the very start, this tool was only made to clear a quick hurdle that I'd encountered while trying to code other, probably more interesting, yet now long-forgotten Rust adventures.

However, not all is lost, dear users. For almost the entire life of the project, I have had a thought: that someone with more resources, skill, time, and/or the benefit of hindsight would come around and make something better. Granted, I thought this would happen to Notify. But Notify has persisted, has been passed on to live a long life, and instead the contender is Bacon.

I have had no involvement in Bacon. Yet it is everything I have wanted to achieve in Cargo Watch. Indeed some five years ago I started development on a Cargo Watch replacement I called "Overwatch", which would have a TUI, a tasks file, a rich pager, and more long-desired features. That never eventuated, though a lot of the low-level improvements that I wrote in preparation for Overwatch "made it" into Notify version 5 and the Watchexec library version 2.
Bacon today is what I wanted Overwatch to be.

Let's face it: Cargo Watch has gone through too many incremental changes, with too little overarching design. It sports no less than four different syntaxes to run commands. Its lackluster filtering options can be obnoxious to use. Pager support is non-existent, sometimes requiring arcane invocations to get right. It can conflict with Rust Analyzer (which didn't exist 10 years ago!), though that has improved a lot over the years.

It's time to let it go.
Use Bacon.
Remember Cargo Watch.


Watchexec is also available for a similar experience that will continue to be maintained, albeit slowly.

Discuss at https://www.reddit.com/r/rust/comments/1ftc7cj/cargo_watch_is_on_life_support/

v8.5.2

05 Jan 03:58
v8.5.2
f931767
Compare
Choose a tag to compare

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.

In this release:

  • Fix error when using old cargo watch -- cargo clippy syntax.

v8.5.1

04 Jan 07:54
v8.5.1
f8298c5
Compare
Choose a tag to compare

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.

In this release:

  • Fix error when using new cargo watch clippy with no arguments.

v8.5.0

04 Jan 06:58
v8.5.0
881e116
Compare
Choose a tag to compare

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

In this release:

  • New -x-less syntax for select cargo subcommands, e.g. cargo watch clippy (#297)
  • Add hint to bash completion for -x (#296 by @pseyfert)

v8.4.1

30 Aug 05:44
v8.4.1
0a85f5f
Compare
Choose a tag to compare

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.

In this release:

  • Ignore rustc-ice-* logs by default (#277)

v8.4.0

13 Feb 03:43
v8.4.0
d9570fe
Compare
Choose a tag to compare

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.

In this release:

Other changes:

  • Allow --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.
  • Add --no-process-group to disable using a process group for the command.
  • Fix malformed output on Windows. (#244)

Future changes:

  • Intent to remove: checksums and signatures (#238)
  • Intent to remove: RPM and DEB packages (#238)

Comment on the issue above if this would affect you!

v8.3.0

11 Jan 14:21
v8.3.0
86f5e5e
Compare
Choose a tag to compare
  • Add --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)
  • Add -L, -E, --env-var to manpage and completions file. (#236)

v8.2.2

11 Jan 01:33
v8.2.2
d4c55a8
Compare
Choose a tag to compare
  • Fix Linux GNU builds for older debians (#234)

v8.2.1

29 Dec 21:32
v8.2.1
7fb37e5
Compare
Choose a tag to compare
  • Fix the top-level workspace directory not getting watched when it's a virtual workspace. (#226)

v8.2.0

29 Dec 09:52
v8.2.0
da5a9ce
Compare
Choose a tag to compare

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.

In this release:

  • Local dependencies are watched even when they fall outside of the current Cargo project. Disable with --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.

Other changes:

  • MSRV bumped to 1.60.0.
  • Notifications are enabled on FreeBSD.
  • --clear falls back to a hardcoded escape sequence when a Terminfo database isn't available. (#218)
  • When using a trailing command (eg 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.
  • The Binstall config for Windows has been fixed, and downloads our builds instead of QuickInstall's. (#199)