Crate wit_component

Source
Expand description

The WebAssembly component tooling.

Modules§

metadata
Definition for encoding of custom sections within core wasm modules of component-model related data.

Structs§

ComponentEncoder
An encoder of components based on wit interface definitions.
Linker
Builder type for composing dynamic library modules into a component
OutputToString
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§

DecodedWasm
Result of the decode function.
StringEncoding
Supported string encoding formats.
TypeKind
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 Resolve and associated metadata.
decode_reader
Decode for incremental reading
dummy_moduledummy-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 package within resolve to a binary WebAssembly representation.
semver_checksemver-check
Tests whether new is a semver-compatible upgrade from the world prev.
targets
This function checks whether component_to_test correctly 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.