From d8c1a51d4a28f5abc2674815c181298205e79f09 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 8 Jul 2026 10:55:08 +0400 Subject: [PATCH] chore: linux ci --- src-tauri/.cargo/audit.toml | 17 +++++++++++++++++ src-tauri/src/browser.rs | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src-tauri/.cargo/audit.toml diff --git a/src-tauri/.cargo/audit.toml b/src-tauri/.cargo/audit.toml new file mode 100644 index 0000000..5665c8f --- /dev/null +++ b/src-tauri/.cargo/audit.toml @@ -0,0 +1,17 @@ +# cargo-audit configuration +# +# The ignored advisories below all concern `quick-xml` 0.39.4, which is pulled in +# ONLY by `wayland-scanner` (Linux clipboard support via arboard → +# tauri-plugin-clipboard-manager). `wayland-scanner` pins `quick-xml ^0.39`, so +# no patched release (>= 0.41.0) is reachable through that dependency chain. +# +# `wayland-scanner` uses quick-xml at build time to parse the Wayland protocol +# XML definitions that ship inside the crate — trusted, bundled input, never +# attacker-controlled — so the denial-of-service vectors these advisories +# describe do not apply. Our own direct dependency is already on the patched +# quick-xml 0.41. Remove these entries once wayland-scanner bumps its requirement. +[advisories] +ignore = [ + "RUSTSEC-2026-0194", # quick-xml: quadratic runtime on duplicate start-tag attribute names + "RUSTSEC-2026-0195", # quick-xml: unbounded namespace-declaration allocation in NsReader +] diff --git a/src-tauri/src/browser.rs b/src-tauri/src/browser.rs index 6f0654c..81e3621 100644 --- a/src-tauri/src/browser.rs +++ b/src-tauri/src/browser.rs @@ -117,7 +117,6 @@ mod linux { install_dir.join("wayfern").join("chrome"), install_dir.join("chrome-linux").join("chrome"), ], - _ => vec![], }; for executable_path in &possible_executables { @@ -146,7 +145,6 @@ mod linux { install_dir.join("wayfern").join("chrome"), install_dir.join("chrome-linux").join("chrome"), ], - _ => vec![], }; for exe_path in &possible_executables { @@ -199,7 +197,6 @@ mod windows { install_dir.join("wayfern").join("chrome.exe"), install_dir.join("chrome-win").join("chrome.exe"), ], - _ => vec![], }; for path in &possible_paths { @@ -240,7 +237,6 @@ mod windows { install_dir.join("wayfern").join("chrome.exe"), install_dir.join("chrome-win").join("chrome.exe"), ], - _ => vec![], }; for exe_path in &possible_executables {