This commit is contained in:
Meghdad committed 2026-11-01 19:43:03 +03:30
commit 22fe85bb92
247 files changed
+35538

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
# Build-time toolchain only. No credentials are sent to the Rust distribution service.
if ! command -v rustup >/dev/null 2>&1 && [ ! -x "$HOME/.cargo/bin/rustup" ]; then
installer="$(mktemp)"
curl --proto '=https' --tlsv1.2 --fail --silent --show-error https://sh.rustup.rs -o "$installer"
sh "$installer" -y --profile minimal --default-toolchain 1.96.0 --no-modify-path
rm -f "$installer"
else
if [ -x "$HOME/.cargo/bin/rustup" ]; then
"$HOME/.cargo/bin/rustup" toolchain install 1.96.0 --profile minimal --no-self-update
else
rustup toolchain install 1.96.0 --profile minimal --no-self-update
fi
fi