mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-25 19:19:31 +03:00
Remove outdated version check
This commit is contained in:
parent
3a0bcd977d
commit
da7165fa58
7
Cargo.lock
generated
7
Cargo.lock
generated
@ -245,7 +245,6 @@ dependencies = [
|
|||||||
"serde_json",
|
"serde_json",
|
||||||
"statistical",
|
"statistical",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"version_check",
|
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -776,12 +775,6 @@ version = "0.8.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "version_check"
|
|
||||||
version = "0.9.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wait-timeout"
|
name = "wait-timeout"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
|
@ -41,7 +41,6 @@ tempfile = "3.2.0"
|
|||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
clap = "2"
|
clap = "2"
|
||||||
version_check = "0.9"
|
|
||||||
atty = "0.2"
|
atty = "0.2"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
11
build.rs
11
build.rs
@ -5,17 +5,6 @@ use clap::Shell;
|
|||||||
include!("src/app.rs");
|
include!("src/app.rs");
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let min_version = "1.39";
|
|
||||||
|
|
||||||
match version_check::is_min_version(min_version) {
|
|
||||||
Some(true) => {}
|
|
||||||
// rustc version too small or can't figure it out
|
|
||||||
_ => {
|
|
||||||
eprintln!("'hyperfine' requires rustc >= {}", min_version);
|
|
||||||
std::process::exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or_else(|| std::env::var_os("OUT_DIR"));
|
let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or_else(|| std::env::var_os("OUT_DIR"));
|
||||||
let outdir = match var {
|
let outdir = match var {
|
||||||
None => return,
|
None => return,
|
||||||
|
Loading…
Reference in New Issue
Block a user