Skip to main content

generate

Function generate 

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

Generate WIT + conversions from a crate’s source string (lib.rs). Inline modules (mod m { .. }) are walked; external mod m; files cannot be read from a bare string — use generate_from_path (the build.rs helper does).