[][rustc-host
]
[][rustc-host
]
Library for getting the so-called "host triple" of rustc.
Add this to your Cargo.toml:
toml
[dependencies]
rustc-host = "0.1"
after that you can use it like this:
```rust extern crate rustc_host;
fn main() { let hosttriple = rustchost::fromcli() .expect("failed to get host triple from rustc"); println!("host triple: {}", hosttriple); } ```
console
cargo run --example host
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.