-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
81: Add implementation to verify the MSRV r=foresterre a=foresterre * Allows verifying a certain MSRV without installing other toolchains * Not yet implemented: option to directly run cargo-msrv in determine-msrv mode when the verification check failed * Requires MSRV to be defined in the Cargo.toml, specifically in the `package.metadata.msrv` key. Co-authored-by: Martijn Gribnau <[email protected]>
- Loading branch information
Showing
12 changed files
with
340 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
use cargo_msrv::run_cargo_msrv; | ||
use cargo_msrv::config::Config; | ||
use cargo_msrv::errors::TResult; | ||
use cargo_msrv::{cli, run_app}; | ||
use std::convert::TryFrom; | ||
|
||
fn main() { | ||
if let Err(err) = run_cargo_msrv() { | ||
if let Err(err) = init_and_run() { | ||
eprintln!("{}", err); | ||
} | ||
} | ||
|
||
fn init_and_run() -> TResult<()> { | ||
let matches = cli::cli().get_matches(); | ||
let config = Config::try_from(&matches)?; | ||
|
||
run_app(&config) | ||
} |
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.