Cargo Watch: To Recompile Rust Project Automatically


cargo-watch is a tool that allows to automatically recompile Rust project whenever there is a change in the Rust source code.

How to install cargo-watch

cargo install cargo-watch

Logs:

 Updating crates.io index
  Downloaded cargo-watch v8.4.0
  Downloaded 1 crate (171.1 KB) in 0.74s
  Installing cargo-watch v8.4.0
....
  Compiling cargo-watch v8.4.0
    Finished release [optimized] target(s) in 51.38s
  Installing /Users/c2ctech/.cargo/bin/cargo-watch
   Installed package `cargo-watch v8.4.0` (executable `cargo-watch`)

Cargo Watch Usage Examples

Copyright ยฉ Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap