Skip to main content

Module format

Module format 

Source
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ยง

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.