feat(cli): retain all RUST_* env vars on mobile commands (#14111)

useful to propagate RUST_BACKTRACE to the IDE commands
This commit is contained in:
Lucas Fernandes Nogueira
2025-08-28 18:02:22 -03:00
committed by GitHub
parent c37a298331
commit 61b9b681e8
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@tauri-apps/cli": patch:enhance
"tauri-cli": patch:enhance
---
Retain `RUST_*` environment variables when running the mobile commands.

View File

@@ -347,6 +347,7 @@ fn env_vars() -> HashMap<String, OsString> {
&& k != "TAURI_SIGNING_PRIVATE_KEY_PASSWORD")
|| k.starts_with("WRY")
|| k.starts_with("CARGO_")
|| k.starts_with("RUST_")
|| k == "TMPDIR"
|| k == "PATH"
{