2 releases
| 0.1.1 | Sep 15, 2022 |
|---|---|
| 0.1.0 | Sep 15, 2022 |
#2384 in WebAssembly
115KB
3K
SLoC
wit-component
WebAssembly component tooling based on the component model proposal and wit-bindgen.
A Bytecode Alliance project
wit-component
wit-component is a crate and a set of CLI tools for creating and interacting with WebAssembly components based on the component model proposal.
Tools
-
wit-component- creates a WebAssembly component from a core WebAssembly module and a set of.witfiles representing the component's imported and exported interfaces. -
wit2wasm- encodes an interface definition (inwit) as an "interface-only" WebAssembly component. A.wasmcomponent file will be generated that stores a full description of the original interface. -
wasm2wit- decodes an "interface-only" WebAssembly component to an interface definition (inwit). A.witfile will be generated that represents the interface described by the component.
Dependencies
~7–11MB
~208K SLoC