Skip to main content

get_platform

Function get_platform 

Source
pub fn get_platform() -> &'static str
Expand description

Return the host platform string as known to Rust: "macos", "linux", "windows", etc. — the value of std::env::consts::OS. The renderer normalises this through normalisePlatform in lib/platform.ts.