A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.
Rust
Update Tauri utilities to remove unmaintained UNIC packages (#145)
Vishnu Srivatsavaf776608de5d6
diff --git a/README.md b/README.mdindex edf2e37..17d0c63 100644--- a/README.md+++ b/README.md@@ -7,7 +7,7 @@<img src="https://img.shields.io/badge/Tauri-v2-FFC131.svg?logo=tauri&logoColor=white" alt="Tauri v2" /><img src="https://img.shields.io/badge/React-19-61DAFB.svg?logo=react&logoColor=black" alt="React 19" /><img src="https://img.shields.io/badge/C%2B%2B-17-00599C.svg?logo=c%2B%2B&logoColor=white" alt="C++17" />- <img src="https://img.shields.io/badge/Rust-1.89+-000000.svg?logo=rust&logoColor=white" alt="Rust" />+ <img src="https://img.shields.io/badge/Rust-1.90+-000000.svg?logo=rust&logoColor=white" alt="Rust" /><br /><a href="https://github.com/sponsors/VishnuSrivatsava"><img src="https://img.shields.io/badge/♥_Sponsor-EA4AAA?style=for-the-badge&logo=github-sponsors&logoColor=white" alt="Sponsor" /></a></div>@@ -243,7 +243,7 @@ sequenceDiagram### Prerequisites1. **Node.js** (`^20.19.0`, `^22.13.0`, or `>=24`, including frontend lint tooling)-2. **Rust** (v1.89+ with Cargo; native file locking for scan history)+2. **Rust** (v1.90+ with Cargo; native file locking for scan history)3. **Android NDK** (v26d or newer)4. **Android SDK / ADB** installed and added to your system `$PATH`.5. **Python 3** for building the daemon.diff --git a/docs/dependency-review.md b/docs/dependency-review.mdindex 98671ae..b46b810 100644--- a/docs/dependency-review.md+++ b/docs/dependency-review.md@@ -216,3 +216,23 @@ still records the GLib 0.18.5 warning and identifies GTK4 as its upgrade path.SocketSweep does not copy those suppressions or claim an unsupported GLibreplacement resolves GTK's copy. This refresh is a dated dependency review,not a security certification or a physical-device validation result.++## URL-pattern dependency refresh++Updating `tauri-utils` from 2.9.1 to 2.10.2 moves `urlpattern` from 0.3.0+to 0.6.0 and removes the five UNIC packages from the lockfile. The utilities+release requires Rust 1.90, which is now the documented minimum.+See the [upstream utilities manifest](https://github.com/tauri-apps/tauri/blob/tauri-v2.12.5/crates/tauri-utils/Cargo.toml).++Using cargo-audit 0.22.2 and RustSec database commit+`965bf9ad083b58e6340d65829d85217b18be9290`, the same-database comparison reports+zero vulnerability entries before and after. Unmaintained-package warnings+fall from six to one. The GLib unsoundness warning remains.++The two remaining findings are `proc-macro-error` 1.0.4+(RUSTSEC-2024-0370) and `glib` 0.18.5 (RUSTSEC-2024-0429).+The Linux GTK3 dependency still requires the GLib 0.18 series. No advisory+ignore or replacement crate was added. These remain open under #63.++SocketSweep's capability configuration contains no remote URL patterns.+Its restrictive local CSP and existing capability declarations are retained.diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex 6271ebb..b8b412a 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -23,13 +23,28 @@ version = "2.0.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"+[[package]]+name = "alloc-no-stdlib"+version = "3.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"+[[package]]name = "alloc-stdlib"version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"dependencies = [- "alloc-no-stdlib",+ "alloc-no-stdlib 2.0.4",+]++[[package]]+name = "alloc-stdlib"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"+dependencies = [+ "alloc-no-stdlib 3.0.0",][[package]]@@ -154,9 +169,20 @@ version = "8.0.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560"dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",- "brotli-decompressor",+ "alloc-no-stdlib 2.0.4",+ "alloc-stdlib 0.2.2",+ "brotli-decompressor 5.0.0",+]++[[package]]+name = "brotli"+version = "9.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "627b7cfb0578f0eafce087a90fcd40add1231900b69e4d4de2d456260a4f5d81"+dependencies = [+ "alloc-no-stdlib 3.0.0",+ "alloc-stdlib 0.3.0",+ "brotli-decompressor 6.2.0",][[package]]@@ -165,8 +191,18 @@ version = "5.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03"dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",+ "alloc-no-stdlib 2.0.4",+ "alloc-stdlib 0.2.2",+]++[[package]]+name = "brotli-decompressor"+version = "6.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34c6783f42c21c952ad7112b354f0ba2f10760e9decea5b1b60523d6e270faaf"+dependencies = [+ "alloc-no-stdlib 3.0.0",+ "alloc-stdlib 0.3.0",][[package]]@@ -290,13 +326,13 @@ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"[[package]]name = "cfb"-version = "0.7.3"+version = "0.14.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"dependencies = [- "byteorder","fnv","uuid",+ "web-time",][[package]]@@ -436,7 +472,20 @@ version = "0.36.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"dependencies = [- "cssparser-macros",+ "cssparser-macros 0.6.1",+ "dtoa-short",+ "itoa",+ "phf",+ "smallvec",+]++[[package]]+name = "cssparser"+version = "0.37.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"+dependencies = [+ "cssparser-macros 0.7.1","dtoa-short","itoa","phf",@@ -454,20 +503,20 @@ dependencies = [][[package]]-name = "ctor"-version = "0.8.0"+name = "cssparser-macros"+version = "0.7.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"dependencies = [- "ctor-proc-macro",- "dtor",+ "quote",+ "syn 2.0.117",][[package]]-name = "ctor-proc-macro"-version = "0.0.7"+name = "ctor"+version = "1.0.13"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"[[package]]name = "darling"@@ -573,7 +622,7 @@ dependencies = ["libc","option-ext","redox_users",- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -629,11 +678,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"dependencies = ["bit-set",- "cssparser",+ "cssparser 0.36.0","foldhash 0.2.0",- "html5ever",+ "html5ever 0.38.0","precomputed-hash",- "selectors",+ "selectors 0.36.1",+ "tendril",+]++[[package]]+name = "dom_query"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"+dependencies = [+ "bit-set",+ "cssparser 0.37.0",+ "foldhash 0.2.0",+ "html5ever 0.39.0",+ "precomputed-hash",+ "selectors 0.38.0","tendril",]@@ -661,21 +725,6 @@ dependencies = ["dtoa",]-[[package]]-name = "dtor"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"-dependencies = [- "dtor-proc-macro",-]--[[package]]-name = "dtor-proc-macro"-version = "0.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"-[[package]]name = "dunce"version = "1.0.5"@@ -1230,7 +1279,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"dependencies = ["log",- "markup5ever",+ "markup5ever 0.38.0",+]++[[package]]+name = "html5ever"+version = "0.39.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"+dependencies = [+ "log",+ "markup5ever 0.39.0",][[package]]@@ -1327,7 +1386,7 @@ dependencies = ["js-sys","log","wasm-bindgen",- "windows-core 0.62.2",+ "windows-core",][[package]]@@ -1489,9 +1548,9 @@ dependencies = [[[package]]name = "infer"-version = "0.19.0"+version = "0.22.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"dependencies = ["cfb",]@@ -1593,12 +1652,24 @@ version = "3.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"dependencies = [- "jsonptr",+ "jsonptr 0.6.3","serde","serde_json","thiserror 1.0.69",]+[[package]]+name = "json-patch"+version = "4.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"+dependencies = [+ "jsonptr 0.7.1",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+]+[[package]]name = "jsonptr"version = "0.6.3"@@ -1609,6 +1680,16 @@ dependencies = ["serde_json",]+[[package]]+name = "jsonptr"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"+dependencies = [+ "serde",+ "serde_json",+]+[[package]]name = "keyboard-types"version = "0.7.0"@@ -1716,6 +1797,17 @@ dependencies = ["web_atoms",]+[[package]]+name = "markup5ever"+version = "0.39.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"+dependencies = [+ "log",+ "tendril",+ "web_atoms",+]+[[package]]name = "memchr"version = "2.8.0"@@ -2537,7 +2629,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"dependencies = ["bitflags 2.11.1",- "cssparser",+ "cssparser 0.36.0",+ "derive_more",+ "log",+ "new_debug_unreachable",+ "phf",+ "phf_codegen",+ "precomputed-hash",+ "rustc-hash",+ "servo_arc",+ "smallvec",+]++[[package]]+name = "selectors"+version = "0.38.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"+dependencies = [+ "bitflags 2.11.1",+ "cssparser 0.37.0","derive_more","log","new_debug_unreachable",@@ -2854,9 +2965,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"[[package]]name = "swift-rs"-version = "1.0.7"+version = "1.0.9"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"+checksum = "cefd87076fd385308ee4aff597256c902f1fbb4d031de1558efc12f8ffefadd9"dependencies = ["base64 0.21.7","serde",@@ -2952,7 +3063,7 @@ dependencies = ["unicode-segmentation","url","windows",- "windows-core 0.61.2",+ "windows-core","windows-version","x11-dl",]@@ -3048,7 +3159,7 @@ dependencies = ["dirs","glob","heck 0.5.0",- "json-patch",+ "json-patch 3.0.1","schemars 0.8.22","semver","serde",@@ -3065,9 +3176,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6bd11644962add2549a60b7e7c6800f17d7020156e02f516021d8103e80cc528"dependencies = ["base64 0.22.1",- "brotli",+ "brotli 8.0.2","ico",- "json-patch",+ "json-patch 3.0.1","plist","png 0.17.16","proc-macro2",@@ -3152,20 +3263,20 @@ dependencies = [[[package]]name = "tauri-utils"-version = "2.9.1"+version = "2.10.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d57200389a2f82b4b0a40ae29ca19b6978116e8f4d4e974c3234ce40c0ffbdec"+checksum = "362ab21cd4cc713f2a02b1a9b5688198b1541cfb6907c4281e9190e0f0ef4aa3"dependencies = ["anyhow",- "brotli",+ "brotli 9.1.1","cargo_metadata","ctor",- "dom_query",+ "dom_query 0.28.0","dunce","glob","http","infer",- "json-patch",+ "json-patch 4.2.0","log","memchr","phf",@@ -3181,7 +3292,7 @@ dependencies = ["serde_with","swift-rs","thiserror 2.0.18",- "toml 1.1.2+spec-1.1.0",+ "toml 0.9.12+spec-1.1.0","url","urlpattern","uuid",@@ -3556,47 +3667,6 @@ version = "1.20.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"-[[package]]-name = "unic-char-property"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"-dependencies = [- "unic-char-range",-]--[[package]]-name = "unic-char-range"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"--[[package]]-name = "unic-common"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"--[[package]]-name = "unic-ucd-ident"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987"-dependencies = [- "unic-char-property",- "unic-char-range",- "unic-ucd-version",-]--[[package]]-name = "unic-ucd-version"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"-dependencies = [- "unic-common",-]-[[package]]name = "unicode-ident"version = "1.0.24"@@ -3630,13 +3700,13 @@ dependencies = [[[package]]name = "urlpattern"-version = "0.3.0"+version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d"+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"dependencies = [+ "icu_properties","regex","serde",- "unic-ucd-ident","url",]@@ -3851,6 +3921,16 @@ dependencies = ["wasm-bindgen",]+[[package]]+name = "web-time"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]+[[package]]name = "web_atoms"version = "0.2.4"@@ -3916,7 +3996,7 @@ dependencies = ["webview2-com-macros","webview2-com-sys","windows",- "windows-core 0.61.2",+ "windows-core","windows-implement","windows-interface",]@@ -3940,7 +4020,7 @@ checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"dependencies = ["thiserror 2.0.18","windows",- "windows-core 0.61.2",+ "windows-core",][[package]]@@ -3965,7 +4045,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -3996,7 +4076,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"dependencies = ["windows-collections",- "windows-core 0.61.2",+ "windows-core","windows-future","windows-link 0.1.3","windows-numerics",@@ -4008,7 +4088,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"dependencies = [- "windows-core 0.61.2",+ "windows-core",][[package]]@@ -4020,21 +4100,8 @@ dependencies = ["windows-implement","windows-interface","windows-link 0.1.3",- "windows-result 0.3.4",- "windows-strings 0.4.2",-]--[[package]]-name = "windows-core"-version = "0.62.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"-dependencies = [- "windows-implement",- "windows-interface",- "windows-link 0.2.1",- "windows-result 0.4.1",- "windows-strings 0.5.1",+ "windows-result",+ "windows-strings",][[package]]@@ -4043,7 +4110,7 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3","windows-threading",]@@ -4088,7 +4155,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3",]@@ -4101,15 +4168,6 @@ dependencies = ["windows-link 0.1.3",]-[[package]]-name = "windows-result"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"-dependencies = [- "windows-link 0.2.1",-]-[[package]]name = "windows-strings"version = "0.4.2"@@ -4119,15 +4177,6 @@ dependencies = ["windows-link 0.1.3",]-[[package]]-name = "windows-strings"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"-dependencies = [- "windows-link 0.2.1",-]-[[package]]name = "windows-sys"version = "0.45.0"@@ -4439,7 +4488,7 @@ dependencies = ["cookie","crossbeam-channel","dirs",- "dom_query",+ "dom_query 0.27.0","dpi","dunce","gdkx11",@@ -4467,7 +4516,7 @@ dependencies = ["webkit2gtk-sys","webview2-com","windows",- "windows-core 0.61.2",+ "windows-core","windows-version","x11-dl",]diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex c2ee415..86e5335 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -5,7 +5,7 @@ description = "A Tauri App"authors = ["you"]license = "GPL-3.0"edition = "2021"-rust-version = "1.89"+rust-version = "1.90"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html