Skip to main content

render_toml

Function render_toml 

Source
pub fn render_toml(inferred: &InferredConfig) -> Result<String, CodegenError>
Expand description

Render inferred to a TOML string.

The output is byte-identical given the same InferredConfig. The header lists discovered source files in stable order; the body is toml::to_string_pretty over the plumb_core::Config.

§Errors

Returns CodegenError::Render if toml::to_string_pretty fails (extremely rare — the plumb_core::Config schema is Serialize).