mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
18 lines
529 B
Bash
Executable File
18 lines
529 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "*** Initialising WASM build environment"
|
|
|
|
rustup update nightly
|
|
rustup target add wasm32-unknown-unknown --toolchain nightly
|
|
# Temporarily install llvm-tools.
|
|
# See https://github.com/rust-lang/rust/issues/53813
|
|
# TODO: Remove this when fixed.
|
|
rustup component add llvm-tools-preview --toolchain nightly
|
|
rustup update stable
|
|
|
|
# Install wasm-gc. It's useful for stripping slimming down wasm binaries.
|
|
command -v wasm-gc || \
|
|
cargo +nightly install --git https://github.com/alexcrichton/wasm-gc
|