mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 14:47:30 +00:00
80bd40cfa3
This PR forks a new version of the `zed_extension_api` in preparation for some upcoming changes that require breaking changes to the WIT. Release Notes: - N/A --------- Co-authored-by: Max <max@zed.dev>
24 lines
483 B
Text
24 lines
483 B
Text
interface platform {
|
|
/// An operating system.
|
|
enum os {
|
|
/// macOS.
|
|
mac,
|
|
/// Linux.
|
|
linux,
|
|
/// Windows.
|
|
windows,
|
|
}
|
|
|
|
/// A platform architecture.
|
|
enum architecture {
|
|
/// AArch64 (e.g., Apple Silicon).
|
|
aarch64,
|
|
/// x86.
|
|
x86,
|
|
/// x86-64.
|
|
x8664,
|
|
}
|
|
|
|
/// Gets the current operating system and architecture.
|
|
current-platform: func() -> tuple<os, architecture>;
|
|
}
|