chore: bump minimum required rust version in installs

This commit is contained in:
mokou 2022-04-20 09:20:42 +02:00
parent 0b7f3fe37a
commit 268822dbd8
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ function vercomp($v1, $v2) {
} }
$rustVersion = $(rustc --version).Split(" ")[1] $rustVersion = $(rustc --version).Split(" ")[1]
$minRustVersion = "1.39" $minRustVersion = "1.56"
if ((vercomp $rustVersion $minRustVersion) -eq 2) { if ((vercomp $rustVersion $minRustVersion) -eq 2) {
Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion" Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion"
Write-Host "Please update Rust with 'rustup update'" Write-Host "Please update Rust with 'rustup update'"

View file

@ -100,7 +100,7 @@ function vercomp() {
} }
RustVersion=$(rustc --version | cut -d " " -f 2) RustVersion=$(rustc --version | cut -d " " -f 2)
MinRustVersion=1.39 MinRustVersion=1.56
vercomp "$RustVersion" $MinRustVersion || ec=$? vercomp "$RustVersion" $MinRustVersion || ec=$?
if [ ${ec:-0} -eq 2 ] if [ ${ec:-0} -eq 2 ]
then then