Skip to content

Commit 97a0514

Browse files
authored
fix(cli): migrate to stable features of log crate (#9119)
* fix(cli): migrate to stable features of `log` crate * to_cow_str
1 parent b15948b commit 97a0514

6 files changed

Lines changed: 48 additions & 42 deletions

File tree

.changes/log-stable-features.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-cli': 'patch:bug'
3+
'tauri-bundler': 'patch:bug'
4+
---
5+
6+
Fix compilation error due to dependency on unstable features of `log` crate.

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/bundler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tar = "0.4.40"
3131
walkdir = "2"
3232
handlebars = "4.5"
3333
tempfile = "3.8.1"
34-
log = { version = "0.4.20", features = ["kv_unstable"] }
34+
log = { version = "0.4.21", features = ["kv"] }
3535
dirs-next = "2.0"
3636
os_pipe = "1"
3737
ureq = { version = "2.9.1", default-features = false, features = [

tooling/cli/Cargo.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ url = { version = "2.4", features = ["serde"] }
7676
os_pipe = "1"
7777
ignore = "0.4"
7878
ctrlc = "3.4"
79-
log = { version = "0.4.20", features = ["kv_unstable", "kv_unstable_std"] }
79+
log = { version = "0.4.21", features = ["kv", "kv_std"] }
8080
env_logger = "0.10.0"
8181
icns = { package = "tauri-icns", version = "0.1" }
8282
image = { version = "0.24", default-features = false, features = ["ico"] }

tooling/cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ where
129129
.format(|f, record| {
130130
let mut is_command_output = false;
131131
if let Some(action) = record.key_values().get("action".into()) {
132-
let action = action.to_str().unwrap();
132+
let action = action.to_cow_str().unwrap();
133133
is_command_output = action == "stdout" || action == "stderr";
134134
if !is_command_output {
135135
let mut action_style = f.style();

0 commit comments

Comments
 (0)