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
wasm_path: PathBuf
The path to the generated wasm binary.
wasm: Vec<u8>
The contents of the wasm binary, provided for convenience.
imports: String
The javascript that should be put as the value of the env
field in the importObject
passed to WebAssembly.instantiate
.
included: String
All javascript specified by the include_js
macro in linked crates. This should be run
before the WebAssembly module is loaded.