linera-sdk/wit/README.md
These WIT files define the
interface that Linera applications compiled to WebAssembly (Wasm) must
adhere to. Application contracts should implement the contract.wit interfaces,
and application services should implement the service.wit interfaces.
These files are generated by the wit-generator binary, and the
following command can be used to build the binary and run it to generate the files:
cargo run --bin wit-generator
These files could be generated automatically when building linera-sdk, but with the current code
organization it would be hard to do because the tool has to be compiled separately first. Having
them here also serves as both a reference point for reading about the interfaces as well as a place
to download them to use with other WIT-compatible languages without having to install Rust.
There is a continuous integration job that ensures that these files are up-to-date.