wai
In the standardsource folder wai-rs
The Rust reference implementation: the envelope, the manifest, capability dispatch, the capability registry, the integer codecs, receipts and energy meters. It builds as a Rust library, as a C-compatible shared or static library (libwai, with the generated header include/wai.h, behind the ffi feature) and as the wai command-line tool. For standard codecs it calls each codec's own library; without them it builds with --no-default-features, which is also how the WebAssembly target builds.
- Form
- Rust library · C library · command-line tool
- Get it
- Build from source.
cargo buildbuilds every part and needs the standard codecs' own libraries;cargo build --no-default-features --features ffibuilds the library, the C library and the command-line tool without any codec library. It is not published to the Rust package registry. - Licence
- Apache-2.0
- CI
- The conformance workflow builds the library and the command-line tool, runs the C interface's envelope tests and checks the registry export through the tool; the byte equality, HTTP delivery, energy receipts, neural sink gates, neural end to end, JPEG AI whole decode and integer vectors workflows test it further.