Function tauri_api::​platform::​target_triple

pub fn target_triple() -> Result<String, Error>

Try to determine the current target triple.

Returns a target triple (e.g. x86_64-unknown-linux-gnu or i686-pc-windows-msvc) or an Error::Config if the current config cannot be determined or is not some combination of the following values: linux, mac, windows -- i686, x86, armv7 -- gnu, musl, msvc

  • Errors:

    • Unexpected system config