Skip to content

Commit

Permalink
chore: bump minimum required rust version in installs
Browse files Browse the repository at this point in the history
  • Loading branch information
shadows-withal committed Apr 20, 2022
1 parent 0b7f3fe commit 268822d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function vercomp($v1, $v2) {
}

$rustVersion = $(rustc --version).Split(" ")[1]
$minRustVersion = "1.39"
$minRustVersion = "1.56"
if ((vercomp $rustVersion $minRustVersion) -eq 2) {
Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion"
Write-Host "Please update Rust with 'rustup update'"
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function vercomp() {
}

RustVersion=$(rustc --version | cut -d " " -f 2)
MinRustVersion=1.39
MinRustVersion=1.56
vercomp "$RustVersion" $MinRustVersion || ec=$?
if [ ${ec:-0} -eq 2 ]
then
Expand Down

0 comments on commit 268822d

Please sign in to comment.