Skip to main content

generate_from_path

Function generate_from_path 

Source
pub fn generate_from_path(
    path: &Path,
    world: Option<&str>,
    namespace: &str,
) -> Result<String, Error>
Expand description

Generate C# bindings for a world in the .wit file or directory at path. A relative path is resolved against CARGO_MANIFEST_DIR when set, and the working directory otherwise. See generate for world and namespace.