From 0c23b8ecfe7c2aca582a81ab7339b11e350b3cac Mon Sep 17 00:00:00 2001 From: beef Date: Wed, 10 Jun 2026 23:24:37 -0700 Subject: [PATCH] remove unused dependency `byte-unit` from log plugin (#3446) * remove unused dependency `byte-unit` from log plugin * Update .changes/rmdep.md Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> * Update .changes/rmdep.md Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> --- .changes/rmdep.md | 6 ++++++ Cargo.lock | 18 ------------------ plugins/log/Cargo.toml | 1 - 3 files changed, 6 insertions(+), 19 deletions(-) create mode 100644 .changes/rmdep.md diff --git a/.changes/rmdep.md b/.changes/rmdep.md new file mode 100644 index 00000000..f72fc162 --- /dev/null +++ b/.changes/rmdep.md @@ -0,0 +1,6 @@ +--- +"log": patch +"log-js": patch +--- + +Removed an unused dependency `byte-unit`. diff --git a/Cargo.lock b/Cargo.lock index eb91344e..f4c95b5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -772,17 +772,6 @@ version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" -[[package]] -name = "byte-unit" -version = "5.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cd29c3c585209b0cbc7309bfe3ed7efd8c84c21b7af29c8bfae908f8777174" -dependencies = [ - "rust_decimal", - "serde", - "utf8-width", -] - [[package]] name = "bytecheck" version = "0.6.12" @@ -6657,7 +6646,6 @@ name = "tauri-plugin-log" version = "2.8.0" dependencies = [ "android_logger", - "byte-unit", "fern", "log", "objc2 0.6.4", @@ -7732,12 +7720,6 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" -[[package]] -name = "utf8-width" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" - [[package]] name = "utf8_iter" version = "1.0.4" diff --git a/plugins/log/Cargo.toml b/plugins/log/Cargo.toml index ebd2ceca..c5c82fd2 100644 --- a/plugins/log/Cargo.toml +++ b/plugins/log/Cargo.toml @@ -25,7 +25,6 @@ serde_json = { workspace = true } tauri = { workspace = true } thiserror = { workspace = true } serde_repr = "0.1" -byte-unit = "5" log = { workspace = true, features = ["kv_unstable"] } time = { version = "0.3", features = [ "formatting",