mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 16:15:49 +02:00
24 lines
645 B
Markdown
24 lines
645 B
Markdown
# 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 {{통합_테스트1}}`
|
|
|
|
- `feature1` 및 `feature2` 기능이 포함된 현재 패키지를 확인:
|
|
|
|
`cargo {{[c|check]}} {{[-F|--features]}} {{기능1,기능2}}`
|
|
|
|
- 기본 기능이 비활성화된 현재 패키지 확인:
|
|
|
|
`cargo {{[c|check]}} --no-default-features`
|