1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ko/common/cargo-fmt.md
2024-10-03 11:48:23 +02:00

16 lines
347 B
Markdown

# cargo fmt
> Rust 프로젝트의 모든 소스 파일에 대해 `rustfmt`를 실행.
> 더 많은 정보: <https://github.com/rust-lang/rustfmt>.
- 모든 소스 파일 포맷:
`cargo fmt`
- 파일에 쓰지 않고 포맷 오류를 확인:
`cargo fmt --check`
-`rustfmt` 호출에 인수를 전달:
`cargo fmt -- {{rustfmt_인수}}`