Skip to main content

execute_unified_fmt

Function execute_unified_fmt 

Source
pub async fn execute_unified_fmt(
    root: &Path,
    check: bool,
) -> Result<UnifiedFmtReport, Error>
Expand description

Executes the unified text and Rust formatting pipeline (all text files, derive sorting, and cargo fmt) without clippy-fix.

Designed as the shared first pass called by both crate fmt and framework CLIs such as euv fmt and hyperlane fmt.

§Arguments

  • &Path - Workspace root directory or Cargo.toml manifest path.
  • bool - When true, checks formatting without writing files.

§Returns

  • Result<UnifiedFmtReport, io::Error> - Unified text formatting report or error.