cargo-watch alternatives and similar packages
Based on the "Cargo" category.
Alternatively, view cargo-watch alternatives based on common mentions on social networks and blogs.
-
cargo-edit
A utility for managing cargo dependencies from the command line. -
cargo-outdated
A cargo subcommand for displaying when Rust dependencies are out of date -
cargo-count
a cargo subcommand for counting lines of code in Rust projects -
cargo-check
a wrapper around cargo rustc -- -Zno-trans which can be helpful for running a faster compile if you only need correctness checks -
cratehub
🦀 A browser extension to explore rust cargo dependencies on GitHub repos -
cargo-multi
Extends cargo to execute the given command on multiple crates - upstream is at
Access the most powerful time series database as a service
Do you think we are missing an alternative of cargo-watch or a related project?
README
Cargo Watch
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.
If you've used nodemon, guard, or entr, it will probably feel familiar.
Looking for a similar tool that you can use for other kinds of projects? Try Watchexec, this project's bigger sibling.
Install
Install or upgrade today with Binstall:
$ cargo binstall cargo-watch
Or with cargo (rustc >= 1.60.0) if you don't have Binstall yet:
$ cargo install cargo-watch
Or unpack directly from the latest pre-built release.
This repository contains a [manual page](./cargo-watch.1) and [shell completions](./completions) that you may want to install; the pre-built packages also include these.
Use
By default, it runs check
. You can easily override this, though:
$ cargo watch [-x command]...
A few examples:
# Run tests only
$ cargo watch -x test
# Run check then tests
$ cargo watch -x check -x test
# Run run with arguments
$ cargo watch -x 'run -- --some-arg'
# Run an arbitrary command
$ cargo watch -- echo Hello world
# Run with features passed to cargo
$ cargo watch --features "foo,bar"
There's a lot more you can do! Check out:
- [Usage guide](./USAGE.md)
- [Manual page](./cargo-watch.1.ronn)
- [Troubleshooting](./TROUBLESHOOT.md)
Augment
Cargo Watch pairs well with:
Extend
- watchexec library: the engine behind this tool.
- clearscreen: to clear the (terminal) screen on every platform.
- command group: to run commands in process groups.
- ignore files: to find, parse, and interpret ignore files.
- project origins: to find the origin(s) directory of a project.
- notify: to respond to file modifications (third-party).
- globset: to match globs (third-party).