cargo-msrv 0.10.0

Find your minimum supported Rust version (MSRV)!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) = 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)
}