rustc-host
Combined crate (library + binary) for getting the so-called "host triple" of rustc.
Usage as a library
Add this to your Cargo.toml:
[]
= "0.1"
after that you can use it like this:
extern crate rustc_host;
Usage as a binary
Installation
cargo install rustc-host
Usage
rustc-host
Example output
x86_64-pc-windows-msvc
Features
unsafe
- disabled by default, enables unsafe code that reuses theString
buffer obtained fromrustc -Vv
instead of allocating a new one.