Rustc target triple =================== [github](https://github.com/dtolnay/target-triple) [crates.io](https://crates.io/crates/target-triple) [docs.rs](https://docs.rs/target-triple) [build status](https://github.com/dtolnay/target-triple/actions?query=branch%3Amaster) Access the $TARGET and $HOST [rustc target triples][platform support] that Cargo supplies to build scripts. [platform support]: https://doc.rust-lang.org/rustc/platform-support.html ## Example ```rust fn main() { // As a const &str: assert_eq!(target_triple::TARGET, "x86_64-unknown-linux-gnu"); // As a string literal: assert_eq!( concat!("target/", target_triple::target!()), "target/x86_64-unknown-linux-gnu", ); } ```
#### License Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.