https://github.com/akesson/rustup-configurator
Helper for listing and adding rustup targets
https://github.com/akesson/rustup-configurator
Last synced: 20 days ago
JSON representation
Helper for listing and adding rustup targets
- Host: GitHub
- URL: https://github.com/akesson/rustup-configurator
- Owner: akesson
- License: mit
- Created: 2023-02-10T08:51:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-02T15:04:19.000Z (about 2 years ago)
- Last Synced: 2025-10-02T02:26:40.230Z (9 months ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```rust
use rustup_configurator::target::Target;
// Get a list of all targets and if they are installed
let list: Vec = rustup_configurator::target::list().unwrap();
// Get all installed targets
let installed: Vec = 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](https://github.com/akesson/rustup-configurator)