Skip to main content

generate_wrapper_crate_with_target

Function generate_wrapper_crate_with_target 

Source
pub fn generate_wrapper_crate_with_target(
    wit: &Utf8Path,
    js_modules: &[JsModuleSpec],
    output: &Utf8Path,
    world: Option<&str>,
    target: GenerationTarget,
) -> Result<()>
Expand description

Generates a Rust wrapper crate, selecting the WASI generation via target.

See generate_wrapper_crate for the description of the common parameters and GenerationTarget for the differences between the Preview 2 and Preview 3 paths.