Skip to main content

Module standalone

Module standalone 

Source
Expand description

Ready-made embedding for hosts whose component imports only polymorph:webcrypto: the canonical store state and the engine/linker/store setup this repository’s drivers share (the demo host and the conformance adapter), so the engine configuration the async imports require has one definition.

Hosts with store state of their own implement WasiWebcryptoView on their own type and call add_to_linker directly instead.

Structs§

Ctx
The store state: the WebCrypto host context plus the resource table its keys and computations live in.

Functions§

engine
An engine configured for the component-model async ABI the polymorph:webcrypto imports use.
load
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.