Skip to main content

Module format

Module format 

Source
Expand description

Runs rustfmt on the repository.

Structsยง

InternalRustfmt
Rustfmt set via the config, or downloaded from CI, used to format local Rust code.
RustfmtConfig ๐Ÿ”’

Enumsยง

RustfmtStatus ๐Ÿ”’

Functionsยง

format
get_modified_rs_files ๐Ÿ”’
Returns the Rust files modified between the last merge commit and what is now on the disk. Does not include removed files.
get_rustfmt_version ๐Ÿ”’
print_paths ๐Ÿ”’
rustfmt ๐Ÿ”’
update_rustfmt_version ๐Ÿ”’
Updates the last rustfmt version used.
verify_rustfmt_version ๐Ÿ”’
Return whether the format cache can be reused.