Giter VIP home page Giter VIP logo

cargo-watch's Introduction

$ cargo watch

Crate release version Crate license: Apache 2.0 Crate download count CI status MSRV: 1.58.0 MSRV policy: bump is non-breaking

Cargo Watch watches over your project's source for changes, and runs Cargo commands when they occur.

If you've used nodemon, guard, or entr, it will probably feel familiar.

Install

Packaging status

Pre-built binaries are available from the website or alternatively on the Github Releases tab.

With cargo-binstall:

$ cargo binstall cargo-watch

With cargo:

$ cargo install cargo-watch

From source:

# clone:
$ git clone https://github.com/watchexec/cargo-watch
$ cd cargo-watch

# build:
$ cargo build --release
$ target/release/cargo-watch -h

# or install:
$ cargo install --path .
$ cargo watch -h

This repository contains a manual page and shell completions that you may want to install; the pre-built packages also include these.

Usage

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:

About

Created by Félix Saparelli and awesome contributors.

cargo-watch's People

Contributors

aigeruth avatar aij avatar bruceg avatar compressed avatar detegr avatar dywedir avatar hcpl avatar infogulch avatar irevoire avatar jmgao avatar justanotherdot avatar kpcyrd avatar kstep avatar lpil avatar lukaskalbertodt avatar mulimoen avatar neuschaefer avatar ordovicia avatar passcod avatar paulkernfeld avatar piggynl avatar rimbi avatar robinst avatar ruipserra avatar senden9 avatar spiralp avatar tanriol avatar tesuji avatar walfie avatar waynr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.