rustc-targets 0.1.0

Get the list of targets supported by rustc.
Documentation
1
2
3
4
5
6
fn main() {
    let targets = rustc_targets::from_cli().unwrap();
    for (i,target) in targets.iter().unwrap().enumerate() {
        println!("{i}. {target}");
    }
}