# cargo-watch

> Watches over your Cargo project's source

Source: https://talira.ai/catalog/cargo-watch-x9fem5ta
Every listing: https://talira.ai/catalog.md

Status: cargo-watch's makers archived or ended it on 18 Jan 2025. Its maintainer archived the repository in January 2025: it 'will not receive further updates, but does remain available', and he recommends Bacon or Watchexec instead. Source: https://github.com/watchexec/cargo-watch

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / file watchers](https://talira.ai/categories/developer-tools/build/file-watchers), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: linux, macos, windows, cli[^4]
- Licence: CC0-1.0[^2][^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Creator: Félix Saparelli (passcod), who also maintains watchexec
- Archived on GitHub

cargo-watch watches a Rust project's source and runs Cargo commands when it changes: cargo check by default, or test, clippy, run and any shell command, restarting a command that's still running. It honours .gitignore and .ignore, watches the crate's local path dependencies too, and passes --features to every Cargo command. It's built on the [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md) library by the same maintainer. He archived it in January 2025 and recommends [bacon](https://talira.ai/catalog/bacon-sqn1nm4z.md) or watchexec instead: version 8.5.3 still installs and works, but it gets no more updates.

## Links

- GitHub: https://github.com/watchexec/cargo-watch

## Problems it solves

- re-run cargo check every time I save a Rust file
- run my Rust tests automatically whenever the source changes
- restart cargo run on my Rust web server when I edit the code
- rebuild when a path dependency in my Cargo workspace changes, not just the current crate
- clear the terminal before each cargo build so I only see the latest errors
- is cargo watch still maintained, and what should I use instead

## Features

- runs cargo check by default; -x runs other Cargo commands, -s shell commands
- restarts a running command on change (--no-restart to let it finish)
- honours .gitignore and .ignore files, and ignores target/ and .git/
- watches local path dependencies of the crate
- --features passed to every Cargo command
- --clear, --postpone, --poll, --delay debounce and --why to show changed paths
- desktop notification on change (experimental)
- prebuilt binaries, .deb and .rpm packages

## Limitations

- Doesn't work outside a Cargo project: its README points to watchexec for anything else[^1]
- Doesn't restart an app only after a build succeeds: its README leaves supervising long-running processes to a process manager such as systemd-run or pm2[^1]
- Doesn't support Windows 7 or older[^1]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.09 out of 1.
Signals: maintenance 0.00, adoption 0.69, momentum 0.39, community 0.64, backing 0.20, extensibility 0.20.

- 2.8k GitHub stars
- 39 contributors
- created by Félix Saparelli (passcod), who also maintains watchexec

Warnings:

- archived by its makers since 18 Jan 2025
- GitHub repository is archived

## Related

- Based on [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md)

## Alternatives

- [bacon](https://talira.ai/catalog/bacon-sqn1nm4z.md): Background code checker
- [entr](https://talira.ai/catalog/entr-tnjj7sns.md): Run arbitrary commands when files change
- [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md): Executes commands in response to file modifications

## Sources

[^1]: https://github.com/watchexec/cargo-watch (checked 20 Nov 2026)
[^2]: https://github.com/watchexec/cargo-watch/blob/8.x/LICENSE (checked 20 Nov 2026)
[^3]: https://crates.io/crates/cargo-watch (checked 20 Nov 2026)
[^4]: https://github.com/watchexec/cargo-watch/releases/tag/v8.5.3 (checked 20 Nov 2026)
