xtask/commands/
cargo_msrv.rs

1
2
3
4
5
6
7
8
9
10
11
use xshell::{cmd, Error, Shell};

pub(crate) fn run(shell: &Shell) -> Result<(), Error> {
    let msrv = cmd!(shell, "cargo-msrv --path extendr-api verify").run();
    if msrv.is_err() {
        println!(
            "Cannot perform `cargo-msrv` check\nInstall `cargo-msrv` by `cargo install cargo-msrv`"
        );
    }
    msrv
}