Struct embed_js_build::PostProcessData [] [src]

pub struct PostProcessData {
    pub wasm_path: PathBuf,
    pub wasm: Vec<u8>,
    pub imports: String,
    pub included: String,
}

Generated from postprocess_crate.

Fields

The path to the generated wasm binary.

The contents of the wasm binary, provided for convenience.

The javascript that should be put as the value of the env field in the importObject passed to WebAssembly.instantiate.

All javascript specified by the include_js macro in linked crates. This should be run before the WebAssembly module is loaded.