Skip to main content

render_wit_full

Function render_wit_full 

Source
pub fn render_wit_full(
    iface_kebab: &str,
    type_defs: &[String],
    methods: &[WitMethod],
) -> String
Expand description

Render a complete .wit document: package + interface (the plugin-error record, any user type_defs (records/variants), the funcs, and the fidius-interface-hash carrier) + the <iface>-plugin world. type_defs are pre-rendered (see struct_to_record / [enum_to_variant]).