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
Provenance
- Commit
80a9f51- Tree
06248ba- Author
David Peter <mail@david-peter.de>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
f619511
7 files changed+163 added−138 removed
modified:.github/workflows/CICD.yml+1 added-1 removed
1 name: CICD2 3 env:4- MIN_SUPPORTED_RUST_VERSION: "1.51.0"4+ MIN_SUPPORTED_RUST_VERSION: "1.54.0"5 CICD_INTERMEDIATES_DIR: "_cicd-intermediates"6 7 on:8 workflow_dispatch:330 unmodified linesmodified:src/app.rs+54 added-57 removed
1 use std::ffi::OsString;2 3-use atty::Stream;3 use clap::{crate_version, App, AppSettings, Arg, ArgMatches};4 6-pub fn get_arg_matches<I, T>(args: I) -> ArgMatches<'static>5+pub fn get_arg_matches<'a, I, T>(args: I) -> ArgMatches6 where7 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 }13 14 /// Build the clap app for parsing command line arguments16-fn build_app() -> App<'static, 'static> {17- let clap_color_setting = if atty::is(Stream::Stdout) {18- AppSettings::ColoredHelp19- } else {20- AppSettings::ColorNever21- };22-15+fn 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 lines80 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 lines96 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 lines109 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 lines127 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 lines141 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 lines159 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 lines174 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 lines238 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 }253+254+#[test]255+fn verify_app() {256+ build_app().debug_assert();257+}modified:src/main.rs+3 added-5 removed
144 unmodified lines145 }146 }147 148 /// Build the HyperfineOptions that correspond to the given ArgMatches149-fn build_hyperfine_options<'a>(150- matches: &ArgMatches<'a>,151-) -> Result<HyperfineOptions, OptionsError<'a>> {149+fn 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 lines242 }243 244 /// Build the ExportManager that will export the results specified245 /// in the given ArgMatches248-fn build_export_manager(matches: &ArgMatches<'_>) -> io::Result<ExportManager> {246+fn 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 lines260 Ok(export_manager)261 }262 263 /// Build the commands to benchmark266-fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec<Command<'a>> {264+fn 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();267 268 if let Some(args) = matches.values_of("parameter-scan") {186 unmodified linesmodified:build.rs+10 added-5 removed
1 use std::fs;2 3-use clap::Shell;3+use clap_complete::{generate_to, Shell};4 5 include!("src/app.rs");6 7 fn main() {4 unmodified lines12 };13 fs::create_dir_all(&outdir).unwrap();14 15 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.3+version = 34+5 [[package]]6 name = "aho-corasick"7 version = "0.7.18"8 source = "registry+https://github.com/rust-lang/crates.io-index"2 unmodified lines11 "memchr",12 ]13 14 [[package]]13-name = "ansi_term"14-version = "0.12.1"15-source = "registry+https://github.com/rust-lang/crates.io-index"16-checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"17-dependencies = [18- "winapi",19-]20-21-[[package]]15 name = "approx"23-version = "0.5.0"16+version = "0.5.1"17 source = "registry+https://github.com/rust-lang/crates.io-index"25-checksum = "072df7202e63b127ab55acfe16ce97013d5b97bf160489336d3f1840fd78e99e"18+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"19 dependencies = [20 "num-traits",21 ]22 65 unmodified lines88 checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"89 90 [[package]]91 name = "clap"99-version = "2.34.0"92+version = "3.0.14"93 source = "registry+https://github.com/rust-lang/crates.io-index"101-checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"94+checksum = "b63edc3f163b3c71ec8aa23f9bd6070f77edbf3d1d198b164afa90ff00e4ec62"95 dependencies = [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 ]106 107 [[package]]108+name = "clap_complete"109+version = "3.0.5"110+source = "registry+https://github.com/rust-lang/crates.io-index"111+checksum = "be4dabb7e2f006497e1da045feaa512acf0686f76b68d94925da2d9422dcb521"112+dependencies = [113+ "clap",114+]115+116+[[package]]117 name = "cloudabi"118 version = "0.0.3"119 source = "registry+https://github.com/rust-lang/crates.io-index"120 checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"96 unmodified lines217 checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"218 219 [[package]]220 name = "getrandom"218-version = "0.2.3"221+version = "0.2.4"222 source = "registry+https://github.com/rust-lang/crates.io-index"220-checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"223+checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"224 dependencies = [225 "cfg-if",226 "libc",227 "wasi",228 ]229 230 [[package]]231+name = "hashbrown"232+version = "0.11.2"233+source = "registry+https://github.com/rust-lang/crates.io-index"234+checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"235+236+[[package]]237 name = "hermit-abi"238 version = "0.1.19"239 source = "registry+https://github.com/rust-lang/crates.io-index"240 checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"8 unmodified lines249 "approx",250 "assert_cmd",251 "atty",252 "clap",253+ "clap_complete",254 "colored",255 "csv",256 "indicatif",257 "libc",8 unmodified lines266 "winapi",267 ]268 269 [[package]]270+name = "indexmap"271+version = "1.8.0"272+source = "registry+https://github.com/rust-lang/crates.io-index"273+checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"274+dependencies = [275+ "autocfg 1.0.1",276+ "hashbrown",277+]278+279+[[package]]280 name = "indicatif"281 version = "0.16.2"282 source = "registry+https://github.com/rust-lang/crates.io-index"283 checksum = "2d207dc617c7a380ab07ff572a6e52fa202a2a8f355860ac9c38e23f8196be1b"14 unmodified lines298 ]299 300 [[package]]301 name = "itertools"282-version = "0.10.1"302+version = "0.10.3"303 source = "registry+https://github.com/rust-lang/crates.io-index"284-checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"304+checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"305 dependencies = [306 "either",307 ]308 16 unmodified lines325 checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"326 327 [[package]]328 name = "libc"309-version = "0.2.116"329+version = "0.2.117"330 source = "registry+https://github.com/rust-lang/crates.io-index"311-checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"331+checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c"332 333 [[package]]334 name = "memchr"335 version = "2.4.1"90 unmodified lines426 checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"427 428 [[package]]429 name = "once_cell"410-version = "1.8.0"430+version = "1.9.0"431 source = "registry+https://github.com/rust-lang/crates.io-index"412-checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"432+checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"433 434 [[package]]435+name = "os_str_bytes"436+version = "6.0.0"437+source = "registry+https://github.com/rust-lang/crates.io-index"438+checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"439+dependencies = [440+ "memchr",441+]442+443+[[package]]444 name = "ppv-lite86"416-version = "0.2.14"445+version = "0.2.16"446 source = "registry+https://github.com/rust-lang/crates.io-index"418-checksum = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741"447+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"448 449 [[package]]450 name = "predicates"451 version = "2.1.1"9 unmodified lines461 ]462 463 [[package]]464 name = "predicates-core"436-version = "1.0.2"465+version = "1.0.3"466 source = "registry+https://github.com/rust-lang/crates.io-index"438-checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451"467+checksum = "da1c2388b1513e1b605fcec39a95e0a9e8ef088f71443ef37099fa9ae6673fcb"468 469 [[package]]470 name = "predicates-tree"442-version = "1.0.4"471+version = "1.0.5"472 source = "registry+https://github.com/rust-lang/crates.io-index"444-checksum = "338c7be2905b732ae3984a2f40032b5e94fd8f52505b186c7d4d68d193445df7"473+checksum = "4d86de6de25020a36c6d3643a86d9a6a9f552107c0559c60ea03551b5e16c032"474 dependencies = [475 "predicates-core",476 "termtree",477 ]478 479 [[package]]480 name = "proc-macro2"452-version = "1.0.30"481+version = "1.0.36"482 source = "registry+https://github.com/rust-lang/crates.io-index"454-checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70"483+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"484 dependencies = [485 "unicode-xid",486 ]487 488 [[package]]489 name = "quote"461-version = "1.0.10"490+version = "1.0.15"491 source = "registry+https://github.com/rust-lang/crates.io-index"463-checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"492+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"493 dependencies = [494 "proc-macro2",495 ]496 194 unmodified lines691 ]692 693 [[package]]694 name = "rust_decimal"666-version = "1.19.0"695+version = "1.21.0"696 source = "registry+https://github.com/rust-lang/crates.io-index"668-checksum = "3c2d4912d369fb95a351c221475657970678d344d70c1a788223f6e74d1e3732"697+checksum = "4214023b1223d02a4aad9f0bb9828317634a56530870a2eaf7200a99c0c10f68"698 dependencies = [699 "arrayvec",700 "num-traits",701 "serde",702 ]703 704 [[package]]705 name = "ryu"677-version = "1.0.5"706+version = "1.0.9"707 source = "registry+https://github.com/rust-lang/crates.io-index"679-checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"708+checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"709 710 [[package]]711 name = "serde"712 version = "1.0.136"42 unmodified lines755 ]756 757 [[package]]758 name = "strsim"730-version = "0.8.0"759+version = "0.10.0"760 source = "registry+https://github.com/rust-lang/crates.io-index"732-checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"761+checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"762 763 [[package]]764 name = "syn"736-version = "1.0.80"765+version = "1.0.86"766 source = "registry+https://github.com/rust-lang/crates.io-index"738-checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194"767+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"768 dependencies = [769 "proc-macro2",770 "quote",771 "unicode-xid",13 unmodified lines785 "winapi",786 ]787 788 [[package]]760-name = "term_size"761-version = "0.3.2"789+name = "termcolor"790+version = "1.1.2"791 source = "registry+https://github.com/rust-lang/crates.io-index"763-checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"792+checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"793 dependencies = [765- "libc",766- "winapi",794+ "winapi-util",795 ]796 797 [[package]]798 name = "terminal_size"6 unmodified lines805 ]806 807 [[package]]808 name = "termtree"781-version = "0.2.1"809+version = "0.2.4"810 source = "registry+https://github.com/rust-lang/crates.io-index"783-checksum = "78fbf2dd23e79c28ccfa2472d3e6b3b189866ffef1aeb91f17c2d968b6586378"811+checksum = "507e9898683b6c43a9aa55b64259b721b52ba226e0f3779137e50ad114a4c90b"812 813 [[package]]814 name = "textwrap"787-version = "0.11.0"815+version = "0.14.2"816 source = "registry+https://github.com/rust-lang/crates.io-index"789-checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"817+checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"818 dependencies = [791- "term_size",792- "unicode-width",819+ "terminal_size",820 ]821 822 [[package]]796-name = "unicode-width"797-version = "0.1.9"798-source = "registry+https://github.com/rust-lang/crates.io-index"799-checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"800-801-[[package]]823 name = "unicode-xid"824 version = "0.2.2"825 source = "registry+https://github.com/rust-lang/crates.io-index"826 checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"827 828 [[package]]808-name = "vec_map"809-version = "0.8.2"810-source = "registry+https://github.com/rust-lang/crates.io-index"811-checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"812-813-[[package]]829 name = "wait-timeout"830 version = "0.2.0"831 source = "registry+https://github.com/rust-lang/crates.io-index"832 checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"23 unmodified lines856 source = "registry+https://github.com/rust-lang/crates.io-index"857 checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"858 859 [[package]]860+name = "winapi-util"861+version = "0.1.5"862+source = "registry+https://github.com/rust-lang/crates.io-index"863+checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"864+dependencies = [865+ "winapi",866+]867+868+[[package]]869 name = "winapi-x86_64-pc-windows-gnu"870 version = "0.4.0"871 source = "registry+https://github.com/rust-lang/crates.io-index"872 checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"modified:Cargo.toml+4 added-3 removed
28 unmodified lines29303132333334353536373839404142434444454647484928 unmodified lines[target.'cfg(windows)'.dependencies]winapi = { version = "0.3", features = ["processthreadsapi", "minwindef", "winnt"] }
[dependencies.clap]version = "2"version = "3"default-features = falsefeatures = ["suggestions", "color", "wrap_help"]features = ["suggestions", "color", "wrap_help", "cargo"]
[dev-dependencies]approx = "0.5"assert_cmd = "2.0"predicates = "2.1"tempfile = "3.3"
[build-dependencies]clap = "2"clap = "3"atty = "0.2"clap_complete = "3.0"
[profile.release]lto = truemodified:README.md+1 added-1 removed
206 unmodified lines207 ```208 cargo install hyperfine209 ```210 211-Make sure that you use Rust 1.51 or higher.211+Make sure that you use Rust 1.54 or higher.212 213 ### From binaries (Linux, macOS, Windows)214 215 Download the corresponding archive from the [Release page](https://github.com/sharkdp/hyperfine/releases).24 unmodified lines