- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 152字
- 2021-07-02 13:35:21
cargo-watch
Cargo-watch helps you shorten your fix, compile, run cycle by automatically building your project in the background whenever you make changes to your code. By default, this just runs Rust's type checker (the cargo check command) and does not undergo the code generation phase (which takes time) and shortens the compile time. A custom command can also be provided instead of cargo check using the -x flag.
We can install cargo-watch by running cargo install cargo-watch, and then within any Cargo project we can run it by invoking cargo watch. Now, whenever we make changes to our project, cargo-watch will run cargo check in the background and recompile the project for us. In the following code, we made a typo and corrected it, and cargo-watch recompiled the project for us:

This will be a very similar experience if you know about the watchman or nodemon packages from the Node.js ecosystem.
- C語言程序設計(第2 版)
- The Android Game Developer's Handbook
- Microsoft Application Virtualization Cookbook
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- 技術領導力:程序員如何才能帶團隊
- 跟小海龜學Python
- C++ 從入門到項目實踐(超值版)
- JavaScript 程序設計案例教程
- Getting Started with Gulp
- Qt5 C++ GUI Programming Cookbook
- 后臺開發:核心技術與應用實踐
- 基于MATLAB的控制系統仿真及應用
- 高質量程序設計指南:C++/C語言
- Android 5從入門到精通
- H5頁面設計與制作(全彩慕課版·第2版)