Skip to main content

host_target_triple

Function host_target_triple 

Source
pub fn host_target_triple() -> Result<String, String>
Expand description

Host target triple from rustc -vV (host: line).

§Errors

Returns an error if rustc is missing, exits non-zero, or output cannot be parsed.

§Examples

let triple = host_target_triple().unwrap();
assert!(!triple.is_empty());