rustup-configurator 0.1.2

Helper for listing and adding rustup targets and toolchains (coming)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum RustupTargetError {
    #[error("Failed to run process")]
    ProcessFailed(#[from] std::io::Error),
    #[error("rustup exited with code {exitcode:?} and stderr {stderr:?} and stdout {stdout:?}")]
    RustupError {
        exitcode: Option<i32>,
        stderr: String,
        stdout: String,
    },
}