Skip to main content

ferrijs_std/utils/
sysinfo.rs

1#[cfg(target_os = "macos")]
2pub const PLATFORM: &str = "darwin";
3#[cfg(target_os = "windows")]
4pub const PLATFORM: &str = "win32";
5#[cfg(not(any(target_os = "macos", target_os = "windows")))]
6pub const PLATFORM: &str = std::env::consts::OS;
7
8#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
9pub const ARCH: &str = "x64";
10#[cfg(target_arch = "aarch64")]
11pub const ARCH: &str = "arm64";
12#[cfg(not(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64")))]
13pub const ARCH: &str = std::env::consts::ARCH;