1use apple_platforms::{triple, ApplePlatform};
2
3fn main() {
4 println!("=== Rust Target → SDK Name ===\n");
5
6 let targets = [
7 "aarch64-apple-darwin",
8 "x86_64-apple-darwin",
9 "aarch64-apple-ios",
10 "aarch64-apple-ios-sim",
11 "aarch64-apple-ios-macabi",
12 "aarch64-apple-tvos",
13 "aarch64-apple-tvos-sim",
14 "aarch64-apple-watchos",
15 "aarch64-apple-watchos-sim",
16 "aarch64-apple-visionos",
17 "aarch64-apple-visionos-sim",
18 "aarch64-apple-driverkit",
19 "x86_64-unknown-linux-gnu", ];
21
22 println!("{:<42} {:<18} {}", "Rust triple", "SDK", "Platform");
23 println!("{}", "-".repeat(85));
24 for target in targets {
25 let sdk = triple::to_sdk(target).unwrap_or("(unknown)");
26 let platform = ApplePlatform::from_rust_triple(target)
27 .map(|p| p.to_string())
28 .unwrap_or_else(|_| "(not Apple)".to_string());
29 println!(" {target:<40} {sdk:<18} {platform}");
30 }
31}