#platform #macos #apple #llvm #clang

apple-platforms

LLVM 中 Rust 的便捷苹果平台列表

3 个版本

0.0.3 2024 年 6 月 9 日
0.0.2 2024 年 6 月 8 日
0.0.1 2024 年 6 月 8 日

#52 in macOS 和 iOS API

Download history 380/week @ 2024-06-05 48/week @ 2024-06-12 6/week @ 2024-07-03 5/week @ 2024-07-10

94 每月下载次数

MIT 许可证

18KB
325 代码行数(不含注释)

apple-platforms

LLVM 提供的便捷苹果平台列表。

示例

运行: cargo run --example platform

输出

Platform { platform: "UNKNOWN", id: 0, name: "unknown", build_name: "unknown", target: "unknown", tapi_target: "unknown", marketing: "unknown" }
Platform { platform: "MACOS", id: 1, name: "macos", build_name: "macos", target: "macos", tapi_target: "macos", marketing: "macOS" }
Platform { platform: "IOS", id: 2, name: "ios", build_name: "ios", target: "ios", tapi_target: "ios", marketing: "iOS" }
Platform { platform: "TVOS", id: 3, name: "tvos", build_name: "tvos", target: "tvos", tapi_target: "tvos", marketing: "tvOS" }
Platform { platform: "WATCHOS", id: 4, name: "watchos", build_name: "watchos", target: "watchos", tapi_target: "watchos", marketing: "watchOS" }
Platform { platform: "BRIDGEOS", id: 5, name: "bridgeos", build_name: "bridgeos", target: "bridgeos", tapi_target: "bridgeos", marketing: "bridgeOS" }
Platform { platform: "MACCATALYST", id: 6, name: "macCatalyst", build_name: "macCatalyst", target: "ios-macabi", tapi_target: "ios-macabi", marketing: "macCatalyst" }
Platform { platform: "IOSSIMULATOR", id: 7, name: "iossimulator", build_name: "iossimulator", target: "ios-simulator", tapi_target: "ios-simulator", marketing: "iOS Simulator" }
Platform { platform: "TVOSSIMULATOR", id: 8, name: "tvossimulator", build_name: "tvossimulator", target: "tvos-simulator", tapi_target: "tvos-simulator", marketing: "tvOS Simulator" }
Platform { platform: "WATCHOSSIMULATOR", id: 9, name: "watchossimulator", build_name: "watchossimulator", target: "watchos-simulator", tapi_target: "watchos-simulator", marketing: "watchOS Simulator" }
Platform { platform: "DRIVERKIT", id: 10, name: "driverkit", build_name: "driverkit", target: "driverkit", tapi_target: "driverkit", marketing: "DriverKit" }
Platform { platform: "XROS", id: 11, name: "xros", build_name: "xros", target: "xros", tapi_target: "xros", marketing: "xrOS" }
Platform { platform: "XROS_SIMULATOR", id: 12, name: "xrsimulator", build_name: "xrsimulator", target: "xrsimulator", tapi_target: "xros-simulator", marketing: "Simulator" }

运行: cargo run --example triple

输出

Converted from aarch64-apple-visionos to arm64-apple-xros

运行: cargo run --example sdk

输出

Converted from aarch64-apple-visionos to xros

备注

作者

版权所有 (c) 2024 Eugene Hauptmann

许可证

MIT

依赖项

~130KB