cargo-watch

Watches over your Cargo project's source.

CC0-1.0 License

Downloads
899K
Stars
2.7K
Committers
36

Bot releases are hidden (Show)

cargo-watch - v8.4.1

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.

In this release:

  • Ignore rustc-ice-* logs by default (#277)
cargo-watch - v8.4.0

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.

In this release:

  • Fix a critical bug where signals sent to commands (including the ones cargo watch would send!) would not be handled due to Rust 1.66 changing its behaviour. (#249, #247)

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!

cargo-watch - v8.3.0

Published by passcod almost 2 years ago

  • 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)
cargo-watch - v8.2.2

Published by passcod almost 2 years ago

  • Fix Linux GNU builds for older debians (#234)
cargo-watch - v8.2.1

Published by passcod almost 2 years ago

  • Fix the top-level workspace directory not getting watched when it's a virtual workspace. (#226)
cargo-watch - 7.5.1: meta changes

Published by passcod over 3 years ago

No code changes this release.

cargo-watch - 7.5.0: features and logs

Published by passcod over 4 years ago

  • Log format (debugs and warnings) changed as part of the upgrade to watchexec 1.14
  • WATCHEXEC_* environment variables are not set for subprocesses anymore. I didn't actually intend to have them in the first place, but chime in if you rely on them!
  • #152 New --features option to pass the --features flag to a selection of cargo commands that support them. E.g. cargo watch --features feat -x check -x test can now be used instead of cargo watch -x 'check --features feat' -x 'test --features feat'.
  • Also fixes a bug where a polling message was shown even when --quiet was given.

image

cargo-watch - 7.4.1: bug in new gitignore code

Published by passcod over 4 years ago

  • #149: if watched directory didn't contain a .git folder, thread would block (infinite loop)
  • Also, #BlackLivesMatter. Closer to home, #ArmsDownNZ (police here wants to arm up, fuck that). Over the pond, #AboriginalLivesMatter. #JunkTerrorBill a bit further away, and spare a thought for Hong Kong, which has been fighting since March last year! I'm not comfortable stating that on Watchexec (which I also maintain and is released concurrently) given it's not, originally, my project, but here I can.
cargo-watch - 7.4.0: gitignores in subdirs

Published by passcod over 4 years ago

  • #147 (pulling in watchexec 1.13): now gitignores in subdirs are also honoured
  • #137: MSRV is documented now, as well as the versioning policy when bumping MSRV
cargo-watch - v7.3.0: ignoring files and events

Published by passcod almost 5 years ago

  • Watchexec 1.12.0
  • More documentation on ignore files (e4e13bee30016d5ee2babfe3d7f739fcaee07cc6)
  • Bring in --no-ignore support from upstream (#133)
  • Bring in --watch-when-idle support from upstream (329aa33f4ddcff5dbb1c291f69c1f7a8d7709025)
  • FYI: https://github.com/watchexec/watchexec/pull/142 from upstream has improved --ignore handling!
cargo-watch - v7.2.2: .ignore support

Published by passcod almost 5 years ago

From upstream watchexec: .ignore files are now supported.

cargo-watch -

Published by passcod over 5 years ago

cargo-watch - v7.2.0: crash on error, invocation without watch

Published by passcod over 5 years ago

  • Fixed a crash on error due to an upstream bug.
  • Allowed direct invocation without the watch argument, such that all these now do the same: (#114)
$ cargo watch
$ cargo-watch watch
$ cargo-watch # <== NEW!
cargo-watch - v7.1.1: windows bugfix, and exit code there, too

Published by passcod over 5 years ago

  • Fixed a bug on Windows where the wrong command separator was being used (#113)
  • Added exit code to the finish message in windows, similar to unixes.
cargo-watch - v7.1.0: finish/start message improvements

Published by passcod over 5 years ago

  • No more quotes or escapes for the start/finish messages, fixing #112.
  • The start message was brought into Rust code rather than shell, so quoting doesn't affect it anymore! This may help a few other issues (e.g. #107).
  • The finish message is printed regardless of whether the command is successful or not.
  • On unixes only for now, the exit status is now reported as part of the finish message.
  • LTO and codegen optimisations are now enabled for release builds.
cargo-watch - v7.0.9: fixes through upgrade

Published by passcod over 5 years ago

cargo-watch - https://github.com/watchexec/cargo-watch/releases/tag/v7.0.8

Published by passcod almost 6 years ago

cargo-watch - v7.0.7: default ignores for SQLite

Published by passcod almost 6 years ago

https://github.com/passcod/cargo-watch/issues/82#issuecomment-432001140 — SQLite files are now ignored by default

cargo-watch - v7.0.6: Windows MSVC builds

Published by passcod about 6 years ago

As well as the GNU ones.

cargo-watch - 7.0.5: bringing over better emacs/vim ignores

Published by passcod about 6 years ago

#100 — thanks to Bruce Guenter — patch

Package Rankings
Top 8.55% on Alpine-edge
Top 4.6% on Alpine-v3.18
Top 11.23% on Alpine-v3.17
Top 9.78% on Alpine-v3.15
Top 10.41% on Alpine-v3.16
Top 3.8% on Crates.io
Badges
Extracted from project README
Crate release version Crate license: CC0 1.0 Crate download count CI status