diff --git a/packages/turbo-repository/scripts/build.sh b/packages/turbo-repository/scripts/build.sh index 122316980ec1c..8f45131c6fa3a 100755 --- a/packages/turbo-repository/scripts/build.sh +++ b/packages/turbo-repository/scripts/build.sh @@ -13,7 +13,7 @@ script_provided_flags="\ for flag in $user_provided_flags; do if [[ $flag == --target=* ]]; then target=${flag#*=} - rustup toolchain install stable --target "$target" + rustup toolchain install nightly-2024-11-22 --target "$target" # For we need to cross-compile some targets with Zig # Fortunately, napi comes with a `--zig` flag @@ -23,7 +23,7 @@ for flag in $user_provided_flags; do fi done -node_modules/.bin/napi build "$script_provided_flags" "$user_provided_flags" +node_modules/.bin/napi build $script_provided_flags $user_provided_flags # Unfortunately, when napi generates a .d.ts file, it doesn't match our formatting rules (it doesn't have semicolons). # Since there's now way to configure this from napi itself, so we need to run prettier on it after generating it. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 9800beb9da529..7d2b06d31de67 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,5 @@ [toolchain] +# Needs to be copied to `packages/turbo-repository/scripts/build.sh` channel = "nightly-2024-11-22" components = ["rustfmt", "clippy"] profile = "minimal"