Skip to content
Myr

Update to clap 3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent f619511 · Browse files · 7 files+163 added−138 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+163 added−138 removed

  • other:+163 added−138 removed

7 files+163 added−138 removed

modified:.github/workflows/CICD.yml+1 added-1 removed
1name: CICD23env:4 MIN_SUPPORTED_RUST_VERSION: "1.51.0"4 MIN_SUPPORTED_RUST_VERSION: "1.54.0"5 CICD_INTERMEDIATES_DIR: "_cicd-intermediates"67on:8 workflow_dispatch:
330 unmodified lines
modified:src/app.rs+54 added-57 removed
1use std::ffi::OsString;23use atty::Stream;3use clap::{crate_version, App, AppSettings, Arg, ArgMatches};46pub fn get_arg_matches<I, T>(args: I) -> ArgMatches<'static>5pub fn get_arg_matches<'a, I, T>(args: I) -> ArgMatches6where7 I: IntoIterator<Item = T>,9 T: Into<OsString> + Clone,8 T: Into<OsString> + Clone + 'a,9{10 let app = build_app();11 app.get_matches_from(args)12}1314/// Build the clap app for parsing command line arguments16fn build_app() -> App<'static, 'static> {17 let clap_color_setting = if atty::is(Stream::Stdout) {18 AppSettings::ColoredHelp19 } else {20 AppSettings::ColorNever21 };2215fn build_app() -> App<'static> {16 App::new("hyperfine")17 .version(crate_version!())25 .setting(clap_color_setting)18 .setting(AppSettings::DeriveDisplayOrder)27 .setting(AppSettings::UnifiedHelpMessage)19 .setting(AppSettings::NextLineHelp)29 .setting(AppSettings::HidePossibleValuesInHelp)20 .setting(AppSettings::HidePossibleValues)21 .max_term_width(90)22 .about("A command-line benchmarking tool.")23 .arg(33 Arg::with_name("command")34 .help("Command to benchmark")24 Arg::new("command")25 .help("Command to benchmark. This can be the name of an executable or a shell \26 command like \"sleep 0.5 && echo test\". If multiple commands are given, \27 hyperfine will show a comparison of the respective runtimes.")28 .required(true)36 .multiple(true)37 .empty_values(false),29 .multiple_occurrences(true)30 .forbid_empty_values(true),31 )32 .arg(40 Arg::with_name("warmup")33 Arg::new("warmup")34 .long("warmup")42 .short("w")35 .short('w')36 .takes_value(true)37 .value_name("NUM")38 .help(39 "Perform NUM warmup runs before the actual benchmark. This can be used \40 to fill (disk) caches for I/O-heavy programs.",41 ),42 )43 .arg(51 Arg::with_name("min-runs")44 Arg::new("min-runs")45 .long("min-runs")53 .short("m")46 .short('m')47 .takes_value(true)48 .value_name("NUM")49 .help("Perform at least NUM runs for each command (default: 10)."),50 )51 .arg(59 Arg::with_name("max-runs")52 Arg::new("max-runs")53 .long("max-runs")61 .short("M")54 .short('M')55 .takes_value(true)56 .value_name("NUM")57 .help("Perform at most NUM runs for each command. By default, there is no limit."),58 )59 .arg(67 Arg::with_name("runs")60 Arg::new("runs")61 .long("runs")62 .conflicts_with_all(&["max-runs", "min-runs"])70 .short("r")63 .short('r')64 .takes_value(true)65 .value_name("NUM")66 .help("Perform exactly NUM runs for each command. If this option is not specified, \67 hyperfine automatically determines the number of runs."),68 )69 .arg(77 Arg::with_name("setup")70 Arg::new("setup")71 .long("setup")79 .short("s")72 .short('s')73 .takes_value(true)74 .number_of_values(1)75 .value_name("CMD")76 .help(
3 unmodified lines
80 not every time as would happen with the --prepare option."81 ),82 )83 .arg(91 Arg::with_name("prepare")84 Arg::new("prepare")85 .long("prepare")93 .short("p")86 .short('p')87 .takes_value(true)95 .multiple(true)88 .multiple_occurrences(true)89 .number_of_values(1)90 .value_name("CMD")91 .help(92 "Execute CMD before each timing run. This is useful for \
3 unmodified lines
96 be run prior to the corresponding benchmark command.",97 ),98 )99 .arg(107 Arg::with_name("cleanup")100 Arg::new("cleanup")101 .long("cleanup")109 .short("c")102 .short('c')103 .takes_value(true)104 .value_name("CMD")105 .help(106 "Execute CMD after the completion of all benchmarking \
2 unmodified lines
109 artifacts that need to be cleaned up."110 ),111 )112 .arg(120 Arg::with_name("parameter-scan")113 Arg::new("parameter-scan")114 .long("parameter-scan")122 .short("P")115 .short('P')116 .takes_value(true)117 .allow_hyphen_values(true)118 .value_names(&["VAR", "MIN", "MAX"])119 .help(
7 unmodified lines
127 The exact syntax may vary depending on your shell and OS."128 ),129 )130 .arg(138 Arg::with_name("parameter-step-size")131 Arg::new("parameter-step-size")132 .long("parameter-step-size")140 .short("D")133 .short('D')134 .takes_value(true)135 .value_names(&["DELTA"])136 .requires("parameter-scan")137 .help(
3 unmodified lines
141 This performs benchmarks for 'sleep 0.3', 'sleep 0.5' and 'sleep 0.7'.",142 ),143 )144 .arg(152 Arg::with_name("parameter-list")145 Arg::new("parameter-list")146 .long("parameter-list")154 .short("L")147 .short('L')148 .takes_value(true)156 .multiple(true)149 .multiple_occurrences(true)150 .allow_hyphen_values(true)151 .value_names(&["VAR", "VALUES"])152 .conflicts_with_all(&["parameter-scan", "parameter-step-size"])153 .help(
5 unmodified lines
159 possible parameter combinations.\n"160 ),161 )162 .arg(170 Arg::with_name("style")163 Arg::new("style")164 .long("style")165 .takes_value(true)166 .value_name("TYPE")167 .possible_values(&["auto", "basic", "full", "nocolor", "color", "none"])
6 unmodified lines
174 the output of the tool.",175 ),176 )177 .arg(185 Arg::with_name("shell")178 Arg::new("shell")179 .long("shell")187 .short("S")180 .short('S')181 .takes_value(true)182 .value_name("SHELL")183 .overrides_with("shell")184 .help("Set the shell to use for executing benchmarked commands."),185 )186 .arg(194 Arg::with_name("ignore-failure")187 Arg::new("ignore-failure")188 .long("ignore-failure")196 .short("i")189 .short('i')190 .help("Ignore non-zero exit codes of the benchmarked programs."),191 )192 .arg(200 Arg::with_name("time-unit")193 Arg::new("time-unit")194 .long("time-unit")202 .short("u")195 .short('u')196 .takes_value(true)197 .value_name("UNIT")198 .possible_values(&["millisecond", "second"])199 .help("Set the time unit to be used. Possible values: millisecond, second."),200 )201 .arg(209 Arg::with_name("export-asciidoc")202 Arg::new("export-asciidoc")203 .long("export-asciidoc")204 .takes_value(true)205 .value_name("FILE")206 .help("Export the timing summary statistics as an AsciiDoc table to the given FILE."),207 )208 .arg(216 Arg::with_name("export-csv")209 Arg::new("export-csv")210 .long("export-csv")211 .takes_value(true)212 .value_name("FILE")213 .help("Export the timing summary statistics as CSV to the given FILE. If you need \214 the timing results for each individual run, use the JSON export format."),215 )216 .arg(224 Arg::with_name("export-json")217 Arg::new("export-json")218 .long("export-json")219 .takes_value(true)220 .value_name("FILE")221 .help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE."),222 )223 .arg(231 Arg::with_name("export-markdown")224 Arg::new("export-markdown")225 .long("export-markdown")226 .takes_value(true)227 .value_name("FILE")228 .help("Export the timing summary statistics as a Markdown table to the given FILE."),229 )230 .arg(238 Arg::with_name("show-output")231 Arg::new("show-output")232 .long("show-output")233 .conflicts_with("style")234 .help(235 "Print the stdout and stderr of the benchmark instead of suppressing it. \
2 unmodified lines
238 when trying to benchmark output speed.",239 ),240 )241 .arg(249 Arg::with_name("command-name")242 Arg::new("command-name")243 .long("command-name")251 .short("n")244 .short('n')245 .takes_value(true)253 .multiple(true)246 .multiple_occurrences(true)247 .number_of_values(1)248 .value_name("NAME")256 .help("Give a meaningful name to a command"),249 .help("Give a meaningful name to a command. This can be specified multiple times \250 if several commands are benchmarked."),251 )258 .help_message("Print this help message.")259 .version_message("Show version information.")252}253254#[test]255fn verify_app() {256 build_app().debug_assert();257}
modified:src/main.rs+3 added-5 removed
144 unmodified lines
145 }146}147148/// Build the HyperfineOptions that correspond to the given ArgMatches149fn build_hyperfine_options<'a>(150 matches: &ArgMatches<'a>,151) -> Result<HyperfineOptions, OptionsError<'a>> {149fn build_hyperfine_options<'a>(matches: &ArgMatches) -> Result<HyperfineOptions, OptionsError<'a>> {150 // Enabled ANSI colors on Windows 10151 #[cfg(windows)]152 colored::control::set_virtual_terminal(true).unwrap();153
88 unmodified lines
242}243244/// Build the ExportManager that will export the results specified245/// in the given ArgMatches248fn build_export_manager(matches: &ArgMatches<'_>) -> io::Result<ExportManager> {246fn build_export_manager(matches: &ArgMatches) -> io::Result<ExportManager> {247 let mut export_manager = ExportManager::default();248 {249 let mut add_exporter = |flag, exporttype| -> io::Result<()> {250 if let Some(filename) = matches.value_of(flag) {
9 unmodified lines
260 Ok(export_manager)261}262263/// Build the commands to benchmark266fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec<Command<'a>> {264fn build_commands<'a>(matches: &'a ArgMatches) -> Vec<Command<'a>> {265 let command_names = matches.values_of("command-name");266 let command_strings = matches.values_of("command").unwrap();267268 if let Some(args) = matches.values_of("parameter-scan") {
186 unmodified lines
modified:build.rs+10 added-5 removed
1use std::fs;23use clap::Shell;3use clap_complete::{generate_to, Shell};45include!("src/app.rs");67fn main() {
4 unmodified lines
12 };13 fs::create_dir_all(&outdir).unwrap();1415 let mut app = build_app();16 app.gen_completions("hyperfine", Shell::Bash, &outdir);17 app.gen_completions("hyperfine", Shell::Fish, &outdir);18 app.gen_completions("hyperfine", Shell::Zsh, &outdir);19 app.gen_completions("hyperfine", Shell::PowerShell, &outdir);16 for shell in [17 Shell::Bash,18 Shell::Fish,19 Shell::Zsh,20 Shell::PowerShell,21 Shell::Elvish,22 ] {23 generate_to(shell, &mut app, "hyperfine", &outdir).unwrap();24 }25}
modified:Cargo.lock+90 added-66 removed
1# This file is automatically @generated by Cargo.2# It is not intended for manual editing.3version = 345[[package]]6name = "aho-corasick"7version = "0.7.18"8source = "registry+https://github.com/rust-lang/crates.io-index"
2 unmodified lines
11 "memchr",12]1314[[package]]13name = "ansi_term"14version = "0.12.1"15source = "registry+https://github.com/rust-lang/crates.io-index"16checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"17dependencies = [18 "winapi",19]2021[[package]]15name = "approx"23version = "0.5.0"16version = "0.5.1"17source = "registry+https://github.com/rust-lang/crates.io-index"25checksum = "072df7202e63b127ab55acfe16ce97013d5b97bf160489336d3f1840fd78e99e"18checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"19dependencies = [20 "num-traits",21]22
65 unmodified lines
88checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"8990[[package]]91name = "clap"99version = "2.34.0"92version = "3.0.14"93source = "registry+https://github.com/rust-lang/crates.io-index"101checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"94checksum = "b63edc3f163b3c71ec8aa23f9bd6070f77edbf3d1d198b164afa90ff00e4ec62"95dependencies = [103 "ansi_term",96 "atty",97 "bitflags",98 "indexmap",99 "lazy_static",100 "os_str_bytes",101 "strsim",107 "term_size",102 "termcolor",103 "terminal_size",104 "textwrap",109 "unicode-width",110 "vec_map",105]106107[[package]]108name = "clap_complete"109version = "3.0.5"110source = "registry+https://github.com/rust-lang/crates.io-index"111checksum = "be4dabb7e2f006497e1da045feaa512acf0686f76b68d94925da2d9422dcb521"112dependencies = [113 "clap",114]115116[[package]]117name = "cloudabi"118version = "0.0.3"119source = "registry+https://github.com/rust-lang/crates.io-index"120checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
96 unmodified lines
217checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"218219[[package]]220name = "getrandom"218version = "0.2.3"221version = "0.2.4"222source = "registry+https://github.com/rust-lang/crates.io-index"220checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"223checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"224dependencies = [225 "cfg-if",226 "libc",227 "wasi",228]229230[[package]]231name = "hashbrown"232version = "0.11.2"233source = "registry+https://github.com/rust-lang/crates.io-index"234checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"235236[[package]]237name = "hermit-abi"238version = "0.1.19"239source = "registry+https://github.com/rust-lang/crates.io-index"240checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
8 unmodified lines
249 "approx",250 "assert_cmd",251 "atty",252 "clap",253 "clap_complete",254 "colored",255 "csv",256 "indicatif",257 "libc",
8 unmodified lines
266 "winapi",267]268269[[package]]270name = "indexmap"271version = "1.8.0"272source = "registry+https://github.com/rust-lang/crates.io-index"273checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"274dependencies = [275 "autocfg 1.0.1",276 "hashbrown",277]278279[[package]]280name = "indicatif"281version = "0.16.2"282source = "registry+https://github.com/rust-lang/crates.io-index"283checksum = "2d207dc617c7a380ab07ff572a6e52fa202a2a8f355860ac9c38e23f8196be1b"
14 unmodified lines
298]299300[[package]]301name = "itertools"282version = "0.10.1"302version = "0.10.3"303source = "registry+https://github.com/rust-lang/crates.io-index"284checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"304checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"305dependencies = [306 "either",307]308
16 unmodified lines
325checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"326327[[package]]328name = "libc"309version = "0.2.116"329version = "0.2.117"330source = "registry+https://github.com/rust-lang/crates.io-index"311checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"331checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c"332333[[package]]334name = "memchr"335version = "2.4.1"
90 unmodified lines
426checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"427428[[package]]429name = "once_cell"410version = "1.8.0"430version = "1.9.0"431source = "registry+https://github.com/rust-lang/crates.io-index"412checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"432checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"433434[[package]]435name = "os_str_bytes"436version = "6.0.0"437source = "registry+https://github.com/rust-lang/crates.io-index"438checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"439dependencies = [440 "memchr",441]442443[[package]]444name = "ppv-lite86"416version = "0.2.14"445version = "0.2.16"446source = "registry+https://github.com/rust-lang/crates.io-index"418checksum = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741"447checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"448449[[package]]450name = "predicates"451version = "2.1.1"
9 unmodified lines
461]462463[[package]]464name = "predicates-core"436version = "1.0.2"465version = "1.0.3"466source = "registry+https://github.com/rust-lang/crates.io-index"438checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451"467checksum = "da1c2388b1513e1b605fcec39a95e0a9e8ef088f71443ef37099fa9ae6673fcb"468469[[package]]470name = "predicates-tree"442version = "1.0.4"471version = "1.0.5"472source = "registry+https://github.com/rust-lang/crates.io-index"444checksum = "338c7be2905b732ae3984a2f40032b5e94fd8f52505b186c7d4d68d193445df7"473checksum = "4d86de6de25020a36c6d3643a86d9a6a9f552107c0559c60ea03551b5e16c032"474dependencies = [475 "predicates-core",476 "termtree",477]478479[[package]]480name = "proc-macro2"452version = "1.0.30"481version = "1.0.36"482source = "registry+https://github.com/rust-lang/crates.io-index"454checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70"483checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"484dependencies = [485 "unicode-xid",486]487488[[package]]489name = "quote"461version = "1.0.10"490version = "1.0.15"491source = "registry+https://github.com/rust-lang/crates.io-index"463checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"492checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"493dependencies = [494 "proc-macro2",495]496
194 unmodified lines
691]692693[[package]]694name = "rust_decimal"666version = "1.19.0"695version = "1.21.0"696source = "registry+https://github.com/rust-lang/crates.io-index"668checksum = "3c2d4912d369fb95a351c221475657970678d344d70c1a788223f6e74d1e3732"697checksum = "4214023b1223d02a4aad9f0bb9828317634a56530870a2eaf7200a99c0c10f68"698dependencies = [699 "arrayvec",700 "num-traits",701 "serde",702]703704[[package]]705name = "ryu"677version = "1.0.5"706version = "1.0.9"707source = "registry+https://github.com/rust-lang/crates.io-index"679checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"708checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"709710[[package]]711name = "serde"712version = "1.0.136"
42 unmodified lines
755]756757[[package]]758name = "strsim"730version = "0.8.0"759version = "0.10.0"760source = "registry+https://github.com/rust-lang/crates.io-index"732checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"761checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"762763[[package]]764name = "syn"736version = "1.0.80"765version = "1.0.86"766source = "registry+https://github.com/rust-lang/crates.io-index"738checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194"767checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"768dependencies = [769 "proc-macro2",770 "quote",771 "unicode-xid",
13 unmodified lines
785 "winapi",786]787788[[package]]760name = "term_size"761version = "0.3.2"789name = "termcolor"790version = "1.1.2"791source = "registry+https://github.com/rust-lang/crates.io-index"763checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"792checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"793dependencies = [765 "libc",766 "winapi",794 "winapi-util",795]796797[[package]]798name = "terminal_size"
6 unmodified lines
805]806807[[package]]808name = "termtree"781version = "0.2.1"809version = "0.2.4"810source = "registry+https://github.com/rust-lang/crates.io-index"783checksum = "78fbf2dd23e79c28ccfa2472d3e6b3b189866ffef1aeb91f17c2d968b6586378"811checksum = "507e9898683b6c43a9aa55b64259b721b52ba226e0f3779137e50ad114a4c90b"812813[[package]]814name = "textwrap"787version = "0.11.0"815version = "0.14.2"816source = "registry+https://github.com/rust-lang/crates.io-index"789checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"817checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"818dependencies = [791 "term_size",792 "unicode-width",819 "terminal_size",820]821822[[package]]796name = "unicode-width"797version = "0.1.9"798source = "registry+https://github.com/rust-lang/crates.io-index"799checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"800801[[package]]823name = "unicode-xid"824version = "0.2.2"825source = "registry+https://github.com/rust-lang/crates.io-index"826checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"827828[[package]]808name = "vec_map"809version = "0.8.2"810source = "registry+https://github.com/rust-lang/crates.io-index"811checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"812813[[package]]829name = "wait-timeout"830version = "0.2.0"831source = "registry+https://github.com/rust-lang/crates.io-index"832checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"
23 unmodified lines
856source = "registry+https://github.com/rust-lang/crates.io-index"857checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"858859[[package]]860name = "winapi-util"861version = "0.1.5"862source = "registry+https://github.com/rust-lang/crates.io-index"863checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"864dependencies = [865 "winapi",866]867868[[package]]869name = "winapi-x86_64-pc-windows-gnu"870version = "0.4.0"871source = "registry+https://github.com/rust-lang/crates.io-index"872checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
modified:Cargo.toml+4 added-3 removed
modified:README.md+1 added-1 removed
206 unmodified lines
207```208cargo install hyperfine209```210211Make sure that you use Rust 1.51 or higher.211Make sure that you use Rust 1.54 or higher.212213### From binaries (Linux, macOS, Windows)214215Download the corresponding archive from the [Release page](https://github.com/sharkdp/hyperfine/releases).
24 unmodified lines