Expand description
The WebAssembly component tooling.
Modules§
- metadata
- Definition for encoding of custom sections within core wasm modules of component-model related data.
Structs§
- Component
Encoder - An encoder of components based on
witinterface definitions. - Linker
- Builder type for composing dynamic library modules into a component
- Output
ToString - Helper structure to help maintain an indentation level when printing source,
modeled after the support in
wit-bindgen-core. Indentation is set to two spaces. - WitPrinter
- A utility for printing WebAssembly interface definitions to a string.
Enums§
- Decoded
Wasm - Result of the
decodefunction. - String
Encoding - Supported string encoding formats.
- Type
Kind - Represents the different kinds of types that can be encountered while visiting a WIT file.
Traits§
- Output
- Trait defining visitor methods driven by
WitPrinter.
Functions§
- decode
- Decodes an in-memory WebAssembly binary into a WIT
Resolveand associated metadata. - decode_
reader - Decode for incremental reading
- dummy_
module dummy-module - Generate a dummy implementation core Wasm module for a given WIT document
- embed_
component_ metadata - Embed component metadata in a buffer of bytes that contains a Wasm module
- encode
- Encodes the given
packagewithinresolveto a binary WebAssembly representation. - semver_
check semver-check - Tests whether
newis a semver-compatible upgrade from the worldprev. - targets
- This function checks whether
component_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.