Skip to main content

detect_platform

Function detect_platform 

Source
pub fn detect_platform() -> String
Expand description

Detect the current platform and return the registry platform key.

Returns one of:

  • aarch64-apple-darwin (Apple Silicon macOS)
  • x86_64-apple-darwin (Intel macOS)
  • x86_64-unknown-linux-musl (Linux x86_64)
  • aarch64-unknown-linux-musl (Linux ARM64)
  • x86_64-pc-windows-msvc (Windows x86_64)