Skip to main content

format_toml

Function format_toml 

Source
pub fn format_toml(input: &str) -> String
Expand description

Formats TOML files cleanly while preserving key order, dependency grouping, and Taplo/Cargo.toml 4-space array indentation.

§Arguments

  • &str - Raw TOML source text.

§Returns

  • String - Normalized TOML text ending with a single \n.