Introduction
WIT is the interface description language of the WebAssembly Component Model. A
.wit file describes what a component imports and exports, and lets
packages share types and interfaces. Binding generators such as wit-bindgen read it.
Structure
The file is UTF-8 text. It may declare a package, and holds interface and
world blocks, use statements and type definitions such as
records, variants, enums, flags and resources.
Not described
Known, not yet covered
- Reference: this page is a summary; the grammar and the binary package encoding are not yet described on this site.
- Viewer: the site has no viewer for WIT files.
Links
Developers
- wit-bindgen – generates language bindings from WIT (Rust)
Reference
- The WIT format – the Component Model’s design document