mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
592 B
592 B
cargo check
檢查本地套件及其所有相依項是否有錯誤。 更多資訊:https://doc.rust-lang.org/cargo/commands/cargo-check.html。
- 檢查當前套件:
cargo {{[c|check]}}
- 檢查所有測試:
cargo {{[c|check]}} --tests
- 檢查
tests/integration_test1.rs中的整合測試:
cargo {{[c|check]}} --test {{integration_test1}}
- 使用
feature1和feature2功能檢查當前套件:
cargo {{[c|check]}} {{[-F|--features]}} {{feature1,feature2}}
- 禁用預設功能後檢測當前套件:
cargo {{[c|check]}} --no-default-features