Crate rustup_configurator

source ·
Expand description

This crate provides a simple interface to the rustup target command for listing and adding targets.

use rustup_configurator::target::Target;

// get a list of all targets and if they are installed
let list: Vec<Target> = rustup_configurator::target::list().unwrap();

// get all installed targets
let installed: Vec<Target> = rustup_configurator::target::installed().unwrap();

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

Modules§

Enums§