Skip to main content

load

Function load 

Source
pub fn load(
    path: &Path,
    webcrypto: WasiWebcryptoCtx,
) -> Result<(Component, Linker<Ctx>, Store<Ctx>)>
Expand description

Load the component at path and prepare everything an instantiation needs: a linker with the polymorph:webcrypto imports added, and a store whose state carries webcrypto.