Crate wit_component

source ·
Expand description

The WebAssembly component tooling.


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


  • An encoder of components based on wit interface definitions.
  • Builder type for composing dynamic library modules into a component
  • A utility for printing WebAssembly interface definitions to a string.



  • Decodes an in-memory WebAssembly binary into a WIT Resolve and associated metadata.
  • Encodes the given package within resolve to a binary WebAssembly representation.
  • 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.