-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
102: Add --version-range option r=taiki-e a=taiki-e Closes #93 > This may be useful for catching issues like BurntSushi/termcolor#35, rust-lang/regex#685, rayon-rs/rayon#761 (comment), rust-lang/rust-clippy#6324. ```text --version-range <START>..[END] Perform commands on a specified (inclusive) range of Rust versions. If the given range is unclosed, the latest stable compiler is treated as the upper bound. Note that ranges are always inclusive ranges. --version-step <NUM> Specify the version interval of --version-range. ``` Note: Ranges are always **inclusive** ranges. (`start..=end`) ```console $ cargo hack check --version-range 1.46..1.47 info: running `cargo +1.46 check` on cargo-hack (1/2) Finished dev [unoptimized + debuginfo] target(s) in 0.28s info: running `cargo +1.47 check` on cargo-hack (2/2) Finished dev [unoptimized + debuginfo] target(s) in 0.23s ``` If the given range is unclosed, the latest stable compiler is treated as the upper bound. ```console $ cargo hack check --version-range 1.46.. info: running `cargo +1.46 check` on cargo-hack (1/3) Finished dev [unoptimized + debuginfo] target(s) in 0.28s info: running `cargo +1.47 check` on cargo-hack (2/3) Finished dev [unoptimized + debuginfo] target(s) in 0.23s info: running `cargo +1.48 check` on cargo-hack (3/3) Finished dev [unoptimized + debuginfo] target(s) in 0.28 ``` You can also specify the version interval by using `--version-step`. (`(start..=end).step_by(step)`) ```console $ cargo hack check --version-range 1.45.. --version-step 2 info: running `cargo +1.45 check` on cargo-hack (1/2) Finished dev [unoptimized + debuginfo] target(s) in 0.29s info: running `cargo +1.47 check` on cargo-hack (2/2) Finished dev [unoptimized + debuginfo] target(s) in 0.25s ``` Co-authored-by: Taiki Endo <[email protected]>
- Loading branch information
Showing
11 changed files
with
289 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.