这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: install nightly toolchain #10081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/turbo-repository/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -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"
Loading