Watches over your Cargo project's source.
CC0-1.0 License
Bot releases are visible (Hide)
Published by passcod about 7 years ago
--no-restart
flag (#73)Published by passcod over 7 years ago
--delay
from seconds instead of mistakenly interpreting the argument as milliseconds (#72)Published by passcod over 7 years ago
Published by passcod over 7 years ago
Bugfix: support directories/paths with spaces (#70)
Published by passcod over 7 years ago
Published by passcod over 7 years ago
Following from watchexec 1.8.3, corrected the .git ignore glob and added ones for .hg and .svn.
Published by passcod over 7 years ago
This is the proper way to implement Version "5".
In a major break from the past, Cargo Watch now depends directly on Watchexec. It uses the newly-landed (contributed by yours truly) library support in watchexec to directly and statically embed it, parsing our own options and figuring out our own defaults and then running watchexec's main loop with the relevant arguments.
This means that we take advantage of Watchexec's excellent features and fixes in this domain, and can focus entirely on the cargo experience and the specific concerns around it. Notably, this fixes:
You can install as usual with
$ cargo install cargo-watch
And upgrade an existing install with:
$ cargo install --force cargo-watch
If you had previously installed the watchexec binary to make the wrappy version work, and you do not require it anymore, you can safely uninstall it. However, watchexec itself is a great tool and may suit other non-cargo usecases you have well, so consider keeping it.
Published by passcod over 7 years ago
I've written a new version that calls watchexec by translating cargo watch's options and defaults, so given that watchexec has several issues of ours covered, technically these are fixed:
It's a bit of a cheat, though.
You can install with this lengthy command:
$ cargo install --git https://github.com/passcod/cargo-watch --branch just-wrap-watchexec
And if you don't have it already, you'll also need to $ cargo install watchexec
.
This is not published to crates.io because I haven't completely given up on making my non-wrappy version work, so if I publish further non-wrappy releases they'll go on crates.io on the 4.x release boat.
Published by passcod over 7 years ago
Bugfix:
Published by passcod over 7 years ago
Bugfixes
echo
was called that caused it not to work on Windows cmd
. (#59)Published by passcod over 7 years ago
Bugfix:
Published by passcod over 7 years ago
Breaking changes:
-x <cmd>
to run custom cargo commands (multiple times as needed).New features:
-w <folder>
(multiple times as needed)..gitignore
files are found and parsed recursively through the repo. This can be disabled with --no-gitignore
.-i <pattern>
(multiple times as needed).--ignore-nothing
.-q
, leaving only the output from the commands.-s <cmd>
(for --shell
) (multiple times as needed).--delay
or -d
, in seconds.Features from 3.2.0 (which was just a few days ago so might be shadowed by this release):
--poll
.--clear
or -c
.Server development (#25) is still not quite supported, but is expected to make it in soon in a point release.