Repository: tauri-apps/tauri
File: tooling/cli/src/mobile/mod.rs (Rust)

Code before:
    };
    if localhost {
      let ip = crate::dev::local_ip_address(force_ip_prompt);
      url.set_host(Some(&ip.to_string())).unwrap();
      if let Some(c) = config_extension {
        let mut c: tauri_utils::config::Config = serde_json::from_str(c)?;
        c.build.dev_path = dev_path.clone();
        config_extension.replace(serde_json::to_string(&c).unwrap());
      } else {
        config_extension.replace(format!(r#"{{ "build": {{ "devPath": "{url}" }} }}"#));
      }
      reload_config(config_extension.as_deref())?;
    }
  }

  Ok(())
}

fn env_vars() -> HashMap<String, OsString> {
  let mut vars = HashMap::new();
  vars.insert("RUST_LOG_STYLE".into(), "always".into());
  for (k, v) in std::env::vars_os() {
    let k = k.to_string_lossy();
    if (k.starts_with("TAURI")
      && k != "TAURI_SIGNINING_PRIVATE_KEY"
      && k != "TAURI_SIGNINING_PRIVATE_KEY_PASSWORD")
      || k.starts_with("WRY")
      || k.starts_with("CARGO_")
      || k == "TMPDIR"
      || k == "PATH"
    {
      vars.insert(k.into_owned(), v);
    }
  }
  vars
}

fn env() -> Result<Env, EnvError> {
  let env = Env::new()?.explicit_env_vars(env_vars());
  Ok(env)
}

/// Writes CLI options to be used later on the Xcode and Android Studio build commands
pub fn write_options(
  identifier: &str,
  mut options: CliOptions,
) -> crate::Result<(Runtime, ServerHandle)> {
  options.vars.extend(env_vars());

  let runtime = Runtime::new().unwrap();
  let r: anyhow::Result<(ServerHandle, SocketAddr)> = runtime.block_on(async move {

Review comment (suggestion):
```suggestion
      && k != "TAURI_SIGNING_PRIVATE_KEY"
      && k != "TAURI_SIGNING_PRIVATE_KEY_PASSWORD")
```

Code after:
    };
    if localhost {
      let ip = crate::dev::local_ip_address(force_ip_prompt);
      url.set_host(Some(&ip.to_string())).unwrap();
      if let Some(c) = config_extension {
        let mut c: tauri_utils::config::Config = serde_json::from_str(c)?;
        c.build.dev_path = dev_path.clone();
        config_extension.replace(serde_json::to_string(&c).unwrap());
      } else {
        config_extension.replace(format!(r#"{{ "build": {{ "devPath": "{url}" }} }}"#));
      }
      reload_config(config_extension.as_deref())?;
    }
  }

  Ok(())
}

fn env_vars() -> HashMap<String, OsString> {
  let mut vars = HashMap::new();
  vars.insert("RUST_LOG_STYLE".into(), "always".into());
  for (k, v) in std::env::vars_os() {
    let k = k.to_string_lossy();
    if (k.starts_with("TAURI")
      && k != "TAURI_SIGNING_PRIVATE_KEY"
      && k != "TAURI_SIGNING_PRIVATE_KEY_PASSWORD")
      || k.starts_with("WRY")
      || k.starts_with("CARGO_")
      || k == "TMPDIR"
      || k == "PATH"
    {
      vars.insert(k.into_owned(), v);
    }
  }
  vars
}

fn env() -> Result<Env, EnvError> {
  let env = Env::new()?.explicit_env_vars(env_vars());
  Ok(env)
}

/// Writes CLI options to be used later on the Xcode and Android Studio build commands
pub fn write_options(
  identifier: &str,
  mut options: CliOptions,
) -> crate::Result<(Runtime, ServerHandle)> {
  options.vars.extend(env_vars());

  let runtime = Runtime::new().unwrap();
  let r: anyhow::Result<(ServerHandle, SocketAddr)> = runtime.block_on(async move {