hurl/bin/install_rust.sh
2023-04-09 14:03:14 +02:00

9 lines
252 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
rust_version=$(grep '^rust-version' packages/hurl/Cargo.toml | cut -f2 -d'"')
curl https://sh.rustup.rs -sSfkL | sh -s -- -y --default-toolchain "$rust_version"
~/.cargo/bin/rustc --version
~/.cargo/bin/cargo --version