Skip to content

Commit 61b9b68

Browse files
authored
feat(cli): retain all RUST_* env vars on mobile commands (#14111)
useful to propagate RUST_BACKTRACE to the IDE commands
1 parent c37a298 commit 61b9b68

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/retain-rust-vars.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@tauri-apps/cli": patch:enhance
3+
"tauri-cli": patch:enhance
4+
---
5+
6+
Retain `RUST_*` environment variables when running the mobile commands.

crates/tauri-cli/src/mobile/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ fn env_vars() -> HashMap<String, OsString> {
347347
&& k != "TAURI_SIGNING_PRIVATE_KEY_PASSWORD")
348348
|| k.starts_with("WRY")
349349
|| k.starts_with("CARGO_")
350+
|| k.starts_with("RUST_")
350351
|| k == "TMPDIR"
351352
|| k == "PATH"
352353
{

0 commit comments

Comments
 (0)