Skip to content

Getting Started

RustyWatch Now Supports Multiple Projects! 🤘

Installation

Open your terminal and run:

Terminal window
cargo install rustywatch

Configuration

in the root directory of your projects. create file named rustywatch.yaml.

workspaces:
# define your directory here.
- dir: go-project
# add command to build your project.
cmd:
- go build
# add your binary location
bin_path: 'go-project/go-project'
# optional: if do you have a specific arguments
bin_arg:
- server # go run main.go server
# ignore or skip to listen from RustyWatch
ignore:
- '.git/'
# Add another projects
- dir: <your_dir>
cmd: <your_commands>
bin_path: <your_bin_location>
bin_arg: <your_bin_arguments>
ignore: <ignore>

Usage

Once you’ve set up the configuration file, simply run RustyWatch by typing:

Terminal window
rustywatch

RustyWatch will automatically start building your projects based on the settings in your rustywatch.yaml