mbx 1.24.1

A build cache for Rust projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::config::Config;
use eyre::Result;
use std::process::ExitCode;

#[derive(usage_rs::Args)]
pub(super) struct DoctorArgs {
    /// Print a stable machine-readable report.
    #[usage(long)]
    json: bool,
}

pub(super) fn run(args: &DoctorArgs, toolchain: Option<&str>) -> Result<ExitCode> {
    crate::doctor::run_loaded(Config::load(), args.json, toolchain)
}