Skip to main content

generate

Function generate 

Source
pub fn generate(toml_source: &str) -> Result<String, Error>
Expand description

Parses toml_source (a .skilj.toml file’s own contents) and returns real, prettyplease-formatted Rust source - genuinely readable when a consumer’s own build.rs writes it to $OUT_DIR for debugging, not a minified one-liner. See this crate’s own root doc comment for what the output covers.