Crate wit_component
source ·Expand description
The WebAssembly component tooling.
Modules
- Definition for encoding of custom sections within core wasm modules of component-model related data.
Structs
- An encoder of components based onwitinterface definitions.
- Builder type for composing dynamic library modules into a component
- A utility for printing WebAssembly interface definitions to a string.
Enums
- Result of thedecodefunction.
- Supported string encoding formats.
Functions
- Decodes an in-memory WebAssembly binary into a WITResolveand associated metadata.
- Embed component metadata in a buffer of bytes that contains a Wasm module
- Encodes the givenpackagewithinresolveto a binary WebAssembly representation.
- Parse a WIT file from a path that represents a top level ‘wit’ directory, normally containing a ‘deps’ folder.
- This function checks whethercomponent_to_testcorrectly conforms to the world specified. It does so by instantiating a generated component that imports a component instance with the component type as described by the “target” world.