hurl/bin/install_rust.sh

9 lines
252 B
Bash
Raw Normal View History

2023-03-12 14:56:43 +03:00
#!/bin/bash
set -Eeuo pipefail
rust_version=$(grep '^rust-version' packages/hurl/Cargo.toml | cut -f2 -d'"')
2023-04-05 12:07:50 +03:00
curl https://sh.rustup.rs -sSfkL | sh -s -- -y --default-toolchain "$rust_version"
2023-03-12 14:56:43 +03:00
~/.cargo/bin/rustc --version
~/.cargo/bin/cargo --version