# cargo-fmt(1)

## NAME

cargo-fmt --- Formats all bin and lib files of the current crate using rustfmt

## DESCRIPTION

This is an external command distributed with the Rust toolchain as an optional component.
It is not built into Cargo, and may require additional installation.

For information about usage and installation,
see <https://github.com/rust-lang/rustfmt>.

## SEE ALSO

[cargo(1)](cargo.md),
[cargo-fix(1)](cargo-fix.md),
[cargo-clippy(1)](cargo-clippy.md),
[Custom subcommands](../reference/external-tools.md#custom-subcommands)
