]> git.lizzy.rs Git - rust.git/commitdiff
bump minimal xargo version so that it honors the lockfile
authorRalf Jung <post@ralfj.de>
Fri, 8 Nov 2019 15:36:57 +0000 (16:36 +0100)
committerRalf Jung <post@ralfj.de>
Fri, 8 Nov 2019 15:36:57 +0000 (16:36 +0100)
src/bin/cargo-miri.rs

index b889ce52f386d5c1c65bda34039abc111ad6d980..36545766d101d94e2351b4a760e46e72e7fcf55f 100644 (file)
@@ -6,6 +6,8 @@
 use std::process::Command;
 use std::ops::Not;
 
+const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 17);
+
 const CARGO_MIRI_HELP: &str = r#"Interprets bin crates and tests in Miri
 
 Usage:
@@ -258,7 +260,7 @@ fn setup(ask_user: bool) {
     }
 
     // First, we need xargo.
-    if xargo_version().map_or(true, |v| v < (0, 3, 16)) {
+    if xargo_version().map_or(true, |v| v < XARGO_MIN_VERSION) {
         if std::env::var("XARGO").is_ok() {
             // The user manually gave us a xargo binary; don't do anything automatically.
             show_error(format!("Your xargo is too old; please upgrade to the latest version"))