Skip to main content

current_platform

Function current_platform 

Source
pub fn current_platform() -> String
Expand description

Current platform key, <arch>-<os> (e.g. “aarch64-macos”), matching the curated registry’s per-platform keys. Uses the compiled target via std::env::consts (no subprocess).