Skip to content

Commit 3ee78c0

Browse files
committed
chore: update all rust build scripts to use cargo-based wasm-opt
1 parent a9aa0cc commit 3ee78c0

4 files changed

Lines changed: 4 additions & 10 deletions

File tree

packages/cli/src/lib/build-strategies/strategies/DockerVMStrategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CONFIGS: Record<BuildableLanguage, VMConfig> = {
3636
"wasm/rust": {
3737
defaultIncludes: ["Cargo.toml", "Cargo.lock"],
3838
baseImage: "polywrap/vm-base-rs",
39-
version: "0.2.0",
39+
version: "0.2.1",
4040
},
4141
"wasm/assemblyscript": {
4242
defaultIncludes: ["package.json", "package-lock.json", "yarn.lock"],

packages/cli/src/lib/defaults/build-strategies/wasm/rust/image/Dockerfile.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ RUN apk add curl pkgconfig openssl-dev bash
1212
RUN apk add clang llvm build-base
1313

1414
# Install wasm-opt
15-
RUN curl -L https://github.com/WebAssembly/binaryen/releases/download/version_101/binaryen-version_101-x86_64-linux.tar.gz | tar -xz \
16-
&& chmod +x binaryen-version_101/bin/wasm-opt \
17-
&& cp binaryen-version_101/bin/wasm-opt /usr/local/bin/ \
18-
&& rm -rf binary-version_101
15+
RUN cargo install wasm-opt
1916

2017
# Install the toml-cli
2118
RUN cargo install toml-cli

packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ RUN apk add curl pkgconfig openssl-dev bash
1212
RUN apk add clang llvm build-base
1313

1414
# Install wasm-opt
15-
RUN curl -L https://github.com/WebAssembly/binaryen/releases/download/version_101/binaryen-version_101-x86_64-linux.tar.gz | tar -xz \
16-
&& chmod +x binaryen-version_101/bin/wasm-opt \
17-
&& cp binaryen-version_101/bin/wasm-opt /usr/local/bin/ \
18-
&& rm -rf binary-version_101
15+
RUN cargo install wasm-opt
1916

2017
# Install the toml-cli
2118
RUN cargo install toml-cli
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.2.1

0 commit comments

Comments
 (0)