rustup-configurator

Helper for listing and adding rustup targets and toolchains (coming)

3 releases

0.1.2 Jun 2, 2024
0.1.1 Oct 29, 2023
0.1.0 Feb 14, 2023
Download history 16/week @ 2024-06-15 22/week @ 2024-06-22 9/week @ 2024-06-29 12/week @ 2024-07-06 24/week @ 2024-07-27 1/week @ 2024-08-03 7/week @ 2024-09-14 20/week @ 2024-09-21 25/week @ 2024-09-28

52 downloads per month

MIT license

7KB
106 lines

Rustup Configurator

This crate provides a simple interface to the rustup target command for listing and adding targets in Rust. It's designed to make managing your Rust targets easier and more efficient.

Usage

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();
# Contributions

Contributions are welcome! Please open an issue or PR on GitHub


lib.rs:

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();

Dependencies

~0.5–1MB
~21K SLoC