bytecodealliance / bytecodealliance/wasm-tools
Using wast in combination with wasm-encoder
Open
wast
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 351
- Avg merge
- 16h 57m
- Merged PRs (30d)
- 38
Description
I'm trying to parse a WAT `Expression` and emit the instructions into a wasm-encoder `Function`.
This is for a language compiler i'm writing that has inlines WAT code.
The problem is that `wast::Instruction` is not compatible with `wasm_encoder::Instruction`.
Also the `wast::binary::Encode` trait is private, so i can't use that in combination with `wasm_encoder::Function::raw` either.
My suggestion is to either make the wast `Encode` trait public, or implement `From for wasm_encoder::Instruction`.
Contributor guide
Assessment
This issue has not been assessed yet.