get_target_platform

Function get_target_platform 

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

Gets the Rust target platform string from the TARGET env var set by cargo for build scripts. See set_TARGET_PLATFORM.

ยงErrors

Returns Err when the TARGET env var is not set or is not valid UTF-8.