Skip to main content

execute_fmt

Function execute_fmt 

Source
pub async fn execute_fmt(
    target_root: &Path,
    check: bool,
) -> Result<HyperlaneFmtReport>
Expand description

Executes unified crate-cli formatting first (Markdown, YAML, JSON/JSONC, TOML, plain text, derives, cargo fmt), then applies Hyperlane-specific attribute formatting.

§Arguments

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

§Returns

  • io::Result<HyperlaneFmtReport> - Aggregated formatting report or error.