Skip to content

Commit df4553c

Browse files
committed
web: Add envvar to pin the nightly Rust version when building dual-wasm
1 parent cf0395f commit df4553c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/packages/core/tools/build_wasm.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ function cargoBuild({
5252
let args =
5353
!extensions && process.env["BUILD_WASM_MVP"]
5454
? [
55-
"+nightly",
55+
process.env["NIGHTLY_VERSION"]
56+
? `+nightly-${process.env["NIGHTLY_VERSION"]}`
57+
: "+nightly",
5658
"build",
5759
"--locked",
5860
"-Z",

0 commit comments

Comments
 (0)