platform.wit
1interface platform {
2 /// An operating system.
3 enum os {
4 /// macOS.
5 mac,
6 /// Linux.
7 linux,
8 /// Windows.
9 windows,
10 }
11
12 /// A platform architecture.
13 enum architecture {
14 /// AArch64 (e.g., Apple Silicon).
15 aarch64,
16 /// x86.
17 x86,
18 /// x86-64.
19 x8664,
20 }
21
22 /// Gets the current operating system and architecture.
23 current-platform: func() -> tuple<os, architecture>;
24}