Bootstrap Rust in Unix installer
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
Codex
2026-06-11 08:47:10 -04:00
parent 12beb04d4d
commit a9fd6e7316
+12 -1
View File
@@ -92,7 +92,18 @@ need() {
fi
}
need cargo
ensure_cargo() {
if command -v cargo >/dev/null 2>&1; then
return
fi
need curl
echo "cargo not found; installing Rust toolchain with rustup" >&2
curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | sh -s -- -y
# shellcheck disable=SC1091
. "$HOME/.cargo/env"
}
ensure_cargo
cleanup() {
if [ -n "${tmpdir:-}" ]; then