Expand description
Runs rustfmt on the repository.
Re-exportsยง
use std::collections::VecDeque;๐use std::path::Path;๐use std::path::PathBuf;๐use std::process::Command;๐use std::sync::Mutex;๐use std::sync::mpsc::SyncSender;๐use build_helper::git::get_git_modified_files;๐use ignore::WalkBuilder;๐use crate::core::builder::Builder;๐use crate::core::builder::Kind;๐use crate::core::builder::Step;๐use crate::core::download::maybe_download_rustfmt;๐use crate::utils::build_stamp::BuildStamp;๐use crate::utils::exec::command;๐use crate::utils::helpers;๐use crate::utils::helpers::t;๐
Structsยง
- Internal
Rustfmt - Rustfmt set via the config, or downloaded from CI, used to format local Rust code.
- Rustfmt
Config ๐
Enumsยง
- Rustfmt
Status ๐
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.