fn is_wasm32_target_in_sysroot(sysroot: &Path) -> bool {
    let wasm32_target = "wasm32-unknown-unknown";

    let rustlib_path = sysroot.join("lib/rustlib");

    info!("Looking for {} in {:?}", wasm32_target, rustlib_path);

    if rustlib_path.join(wasm32_target).exists() {
        info!("Found {} in {:?}", wasm32_target, rustlib_path);
        true
    } else {
        info!("Failed to find {} in {:?}", wasm32_target, rustlib_path);
        false
    }
}
/// Checks if the wasm32-unknown-unknown is present in rustc's sysroot.
Checks if the wasm32-unknown-unknown is present in rustc's sysroot.
Checks if the wasm32 - unknown - unknown is present in rustc ' s sysroot .
fn is_wasm32_target_in_sysroot(sysroot: &Path) -> bool {
    let wasm32_target = "wasm32-unknown-unknown";
    let rustlib_path = sysroot.join("lib/rustlib");
    info!("Looking for {} in {:?}", wasm32_target, rustlib_path);
    if rustlib_path.join(wasm32_target).exists() {
        info!("Found {} in {:?}", wasm32_target, rustlib_path);
        true
    } else {
        info!("Failed to find {} in {:?}", wasm32_target, rustlib_path);
        false
    }
}
fn is_wasm32_target_in_sysroot ( sysroot : & Path ) -> bool { let wasm32_target = " " ; let rustlib_path = sysroot . join ( " " ) ; info ! ( " " wasm32_target rustlib_path ) ; if rustlib_path . join ( wasm32_target ) . exists ( ) { info ! ( " " wasm32_target rustlib_path ) ; true } else { info ! ( " " wasm32_target rustlib_path ) ; false } }
Checks if the wasm32-unknown-unknown is present in rustc's sysroot.
Checks if the wasm32 - unknown - unknown is present in rustc ' s sysroot .
sysroot
&Path