-
Notifications
You must be signed in to change notification settings - Fork 532
Build and optimize WASM runtime
Marko Petrlić edited this page Oct 11, 2023
·
1 revision
Use srtool cli to compile WASM runtime:
$> srtool build -r runtime/ --package da-runtime
WASM runtime is already optimized by srtool
with wasm-opt
from Binaryen. If needed, WASM runtime can be further optimized by using:
$> wasm-opt -Oz -o ./da_runtime.compact.wasm \
./runtime/target/srtool/release/wbuild/da-runtime/da_runtime.compact.wasm