Function guess_host_triple::guess_host_triple [] [src]

pub fn guess_host_triple() -> Option<&'static str>

Guess which Rust-supported platform is running the current code.

This function may return None if it cannot obtain details about the current platform, or if it does not recognise them.

Problems that occur during platform detection are logged via the log crate.

Example

See the top-level example.