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
14
use rustup_configurator::target::Target;

fn main() {
    // Get a list of all targets and if they are installed
    let list: Vec<Target> = rustup_configurator::target::list().unwrap();
    println!("All targets: \n{:#?}", list);

    // Get all installed targets
    let installed: Vec<Target> = rustup_configurator::target::installed().unwrap();
    println!("Installed targets: \n{:#?}", installed);

    // Install some targets
    rustup_configurator::target::install(&["aarch64-apple-ios".into()]).unwrap();
}