wasm_pack/target.rs
1//! Information about the target wasm-pack is currently being compiled for.
2//!
3//! That is, whether we are building wasm-pack for windows vs linux, and x86 vs
4//! x86-64, etc.
5
6#![allow(missing_docs)]
7
8pub const LINUX: bool = cfg!(target_os = "linux");
9pub const MACOS: bool = cfg!(target_os = "macos");
10pub const WINDOWS: bool = cfg!(target_os = "windows");
11
12#[allow(non_upper_case_globals)]
13pub const x86_64: bool = cfg!(target_arch = "x86_64");
14#[allow(non_upper_case_globals)]
15pub const x86: bool = cfg!(target_arch = "x86");
16#[allow(non_upper_case_globals)]
17pub const aarch64: bool = cfg!(target_arch = "aarch64");