Envoy ABI
.
💡The goal of this repo is to try out Rust bindings auto-generated by WASI toolchain out of witx
definitions.
- src/ - Rust bingings to
Envoy ABI
- lib.rs - manually defined entry point into the library
- error.rs - manually defined
Error
struct similar to WASI's - types_generated.rs - Rust types auto-generated out of envoy-abi/v1alpha/witx/typenames.witx
- envoy_host_generated.rs - Rust functions auto-generated out of envoy-abi/v1alpha/witx/envoy_host.witx
cargo build --release
- Clone this repo into
$RUST_SDK_HOME
- Clone yskopets/wasi into
$WASI_HOME
and checkoutfeature/upgrade-witx
branch - Run inside
$WASI_HOME
cargo run -p generate-raw \ $RUST_SDK_HOME/envoy-abi/v1alpha/witx/typenames.witx \ > $RUST_SDK_HOME/envoy-rust-abi/src/types_generated.rs
- Run inside
$WASI_HOME
cargo run -p generate-raw \ $RUST_SDK_HOME/envoy-abi/v1alpha/witx/envoy_host.witx \ > $RUST_SDK_HOME/envoy-rust-abi/src/envoy_host_generated.rs