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 #13282

[avi: regenerate frozen toolchain]

Closes #13605
This commit is contained in:
Wojciech Mitros
2023-03-22 12:31:51 +01:00
committed by Kamil Braun
parent 9a9dbffce3
commit b0fa59b260
2 changed files with 3 additions and 1 deletions

View File

@@ -107,6 +107,8 @@ fedora_packages=(
cargo
rapidxml-devel
rust-std-static-wasm32-wasi
wabt
binaryen
)
# lld is not available on s390x, see

View File

@@ -1 +1 @@
docker.io/scylladb/scylla-toolchain:fedora-37-20230320
docker.io/scylladb/scylla-toolchain:fedora-37-20230424