Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add tools for optimizing the Wasm binaries and translating to wat
After the addition of the rust-std-static-wasm32-wasi target, we're able to compile the Rust programs to Wasm binaries. However, we're still only able to handle the Wasm UDFs in the Text format, so we need a tool to translate the .wasm files to .wat. Additionally, the .wasm files generated by default are unnecessarily large, which can be helped using wasm-opt and wasm-strip. The tool for translating wasm to wat (wasm2wat), and the tool for stripping the wasm binaries (wasm-strip) are included in the `wabt` package, and the optimization tool (wasm-opt) is included in the `binaryen` package. Both packages are added to install-dependencies.sh Closes scylladb#13282 [avi: regenerate frozen toolchain] Closes scylladb#13605
- Loading branch information