Skip to main content

generate_from_path

Function generate_from_path 

Source
pub fn generate_from_path(lib_rs: &Path) -> Result<Generated, String>
Expand description

Like generate, but reads lib_rs and follows external mod m; files (resolving m.rs / m/mod.rs), so #[derive(WitType)] types and the #[plugin_interface] trait may live in submodules.