Expand description

This crate provides a simple interface to the rustup target command for listing and adding targets. It uses the target-lexicon Triple to identify targets.

use rustup_configurator::Triple;

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

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

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

Structs

  • A target “triple”. Historically such things had three fields, though they’ve added additional fields over time.

Enums

Functions

  • Install a list of rust targets, using the rustup target add command
  • List all installed rust targets using the rustup target list command
  • List all available rust targets using the rustup target list command