From af51f58c8c541053860fe191c567cb98d9b5d827 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Sun, 2 May 2021 15:36:53 +0200 Subject: [PATCH] [build] upgrade MIN_RUST_VERSION --- rust-bins/xtask/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-bins/xtask/src/main.rs b/rust-bins/xtask/src/main.rs index 85fe22a16..b5077613e 100644 --- a/rust-bins/xtask/src/main.rs +++ b/rust-bins/xtask/src/main.rs @@ -17,7 +17,7 @@ use anyhow::Result; use std::process::{Command, Output}; use structopt::StructOpt; -const MIN_RUST_VERTION: &str = "1.50.0"; +const MIN_RUST_VERSION: &str = "1.51.0"; const NODE_VERSION: &str = "10.22.1"; #[derive(StructOpt)] @@ -40,12 +40,12 @@ enum DuniterXTaskCommand { fn main() -> Result<()> { let args = DuniterXTask::from_args(); - if !version_check::is_min_version(MIN_RUST_VERTION).unwrap_or(false) + if !version_check::is_min_version(MIN_RUST_VERSION).unwrap_or(false) && exec_should_success(Command::new("rustup").args(&["update", "stable"])).is_err() { eprintln!( "Duniter requires Rust {} or higher. If you installed the Rust toolchain via rustup, please execute the command `rustup update stable`.", - MIN_RUST_VERTION + MIN_RUST_VERSION ); std::process::exit(1); } -- GitLab