target_triple/lib.rs
1//! [![github]](https://github.com/dtolnay/target-triple) [![crates-io]](https://crates.io/crates/target-triple) [![docs-rs]](https://docs.rs/target-triple)
2//!
3//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
4//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
5//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
6
7#![doc(html_root_url = "https://docs.rs/target-triple/1.0.0")]
8
9#[cfg(not(host_os = "windows"))]
10include!(concat!(env!("OUT_DIR"), "/macros.rs"));
11
12#[cfg(host_os = "windows")]
13include!(concat!(env!("OUT_DIR"), "\\macros.rs"));
14
15/// The target triple that is being compiled for.
16pub const TARGET: &str = target!();
17
18/// The host triple of the Rust compiler.
19pub const HOST: &str = host!();