From 138a97e95c383b750481928f63c3458eaf15511d Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sun, 1 Nov 2026 07:39:47 -0800 Subject: [PATCH] build(deny): one deny.toml for the three platforms The root deny.toml now covers every platform: the graph targets are the three Windows targets plus x86_64 and aarch64 Linux and aarch64 macOS; the advisory ignores gain the KDE ones (zbus family, RUSTSEC-2026-0370..0372) and the macOS ones (git2 through shadow-rs, RUSTSEC-2026-0183/0184; quick-xml, RUSTSEC-2026-0194/0195); the licence allow list was already a superset of both trees' lists; clarify entries are added for komorebi-linux, komorebi-macos, komorebi-hotkeys and komorebi-version; quickxml_to_serde joins the allowed git sources. komorebi-for-kde/deny.toml and komorebi-for-mac/deny.toml are deleted. The reasons of ignores that exist in more than one file keep the root text. Not verified: cargo deny was not run here (it is not installed; the nix check of the root flake runs it in the flake revision of this stack). --- deny.toml | 31 +++++++ komorebi-for-kde/deny.toml | 150 ---------------------------------- komorebi-for-mac/deny.toml | 160 ------------------------------------- 3 files changed, 31 insertions(+), 310 deletions(-) delete mode 100644 komorebi-for-kde/deny.toml delete mode 100644 komorebi-for-mac/deny.toml diff --git a/deny.toml b/deny.toml index 65b0694b..ed1e1677 100644 --- a/deny.toml +++ b/deny.toml @@ -3,6 +3,9 @@ targets = [ "x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "aarch64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-unknown-linux-gnu", + "aarch64-apple-darwin", ] all-features = false no-default-features = false @@ -18,6 +21,13 @@ ignore = [ { id = "RUSTSEC-2025-0056", reason = "only used for colour palette generation" }, { id = "RUSTSEC-2026-0192", reason = "will address this when upgrading egui" }, { id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml is only pulled in via serde_yaml, and there is no safe upgrade available" }, + { id = "RUSTSEC-2026-0370", reason = "zvariant is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, + { id = "RUSTSEC-2026-0371", reason = "zbus_names is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, + { id = "RUSTSEC-2026-0372", reason = "zvariant_derive is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, + { id = "RUSTSEC-2026-0183", reason = "git2 is only used by shadow-rs at build time to read version info from our own repository" }, + { id = "RUSTSEC-2026-0184", reason = "git2 is only used by shadow-rs at build time to read version info from our own repository" }, + { id = "RUSTSEC-2026-0194", reason = "quick-xml is only used to parse local, trusted XML (config conversion and plist files), not untrusted input" }, + { id = "RUSTSEC-2026-0195", reason = "quick-xml is only used to parse local, trusted XML (config conversion and plist files), not untrusted input" }, ] [licenses] @@ -52,6 +62,26 @@ crate = "komorebi-windows" expression = "LicenseRef-Komorebi-2.0" license-files = [] +[[licenses.clarify]] +crate = "komorebi-linux" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-macos" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-hotkeys" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-version" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + [[licenses.clarify]] crate = "komorebi-client" expression = "LicenseRef-Komorebi-2.0" @@ -184,6 +214,7 @@ unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] allow-git = [ + "https://github.com/LGUG2Z/quickxml_to_serde", "https://github.com/LGUG2Z/base16-egui-themes", "https://github.com/LGUG2Z/windows-icons", "https://github.com/LGUG2Z/win32-display-data", diff --git a/komorebi-for-kde/deny.toml b/komorebi-for-kde/deny.toml deleted file mode 100644 index c6c4645c..00000000 --- a/komorebi-for-kde/deny.toml +++ /dev/null @@ -1,150 +0,0 @@ -[graph] -targets = [ - "x86_64-unknown-linux-gnu", - "aarch64-unknown-linux-gnu", - "aarch64-apple-darwin", -] -all-features = false -no-default-features = false - -[output] -feature-depth = 1 - -[advisories] -ignore = [ - { id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml comes with serde_yaml, which komorebi-layouts reads Windows-only custom layouts with; nothing here calls it" }, - { id = "RUSTSEC-2026-0370", reason = "zvariant is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, - { id = "RUSTSEC-2026-0371", reason = "zbus_names is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, - { id = "RUSTSEC-2026-0372", reason = "zvariant_derive is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, - { id = "RUSTSEC-2024-0320", reason = "yaml-rust comes with serde_yaml 0.8 under flavours, which komorebi-themes makes palettes with; not using any yaml features from this library" }, - { id = "RUSTSEC-2025-0056", reason = "adler comes with the image decoder under flavours, which komorebi-themes makes palettes with; only used for color palette generation" }, - { id = "RUSTSEC-2026-0192", reason = "ttf-parser comes with the fonts of egui, which komorebi-themes pulls in for its theme types; komorebi draws no text" }, -] - -[licenses] -allow = [ - "Apache-2.0", - "BSD-2-Clause", - "BSD-3-Clause", - "CC0-1.0", - "ISC", - "MIT", - "MPL-2.0", - "OFL-1.1", - "Ubuntu-font-1.0", - "Unicode-3.0", - "Zlib", - "LicenseRef-Komorebi-2.0", -] -confidence-threshold = 0.8 - -[[licenses.clarify]] -crate = "komorebi" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-linux" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-hotkeys" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-layouts" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-scrolling" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-themes" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-version" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "base16-egui-themes" -expression = "MIT" -license-files = [] - - -[[licenses.clarify]] -crate = "komorebi-backend" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-client" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-collections" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-config" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-core" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-protocol" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-settings" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-transport" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebic" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebic-core" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[bans] -multiple-versions = "allow" -wildcards = "allow" -highlight = "all" -workspace-default-features = "allow" -external-default-features = "allow" - -[sources] -unknown-registry = "deny" -unknown-git = "deny" -allow-registry = ["https://github.com/rust-lang/crates.io-index"] -allow-git = [ - "https://github.com/LGUG2Z/base16-egui-themes", - "https://github.com/LGUG2Z/base16_color_scheme", - "https://github.com/LGUG2Z/catppuccin-egui", - "https://github.com/LGUG2Z/flavours", - "https://github.com/LGUG2Z/komorebi", - "https://github.com/LGUG2Z/whkd", -] diff --git a/komorebi-for-mac/deny.toml b/komorebi-for-mac/deny.toml deleted file mode 100644 index 43ea5000..00000000 --- a/komorebi-for-mac/deny.toml +++ /dev/null @@ -1,160 +0,0 @@ -[graph] -targets = ["aarch64-apple-darwin"] -all-features = false -no-default-features = false - -[output] -feature-depth = 1 - -[advisories] -ignore = [ - { id = "RUSTSEC-2024-0436", reason = "paste is fine" }, - { id = "RUSTSEC-2024-0320", reason = "not using any yaml features from this library" }, - { id = "RUSTSEC-2025-0056", reason = "only used for colour palette generation" }, - { id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml is only pulled in via serde_yaml, and there is no safe upgrade available" }, - { id = "RUSTSEC-2026-0183", reason = "git2 is only used by shadow-rs at build time to read version info from our own repository" }, - { id = "RUSTSEC-2026-0184", reason = "git2 is only used by shadow-rs at build time to read version info from our own repository" }, - { id = "RUSTSEC-2026-0194", reason = "quick-xml is only used to parse local, trusted XML (config conversion and plist files), not untrusted input" }, - { id = "RUSTSEC-2026-0195", reason = "quick-xml is only used to parse local, trusted XML (config conversion and plist files), not untrusted input" }, - { id = "RUSTSEC-2026-0192", reason = "ttf-parser is only used for font parsing in egui, and there is no safe upgrade available" }, -] - -[licenses] -allow = [ - "0BSD", - "Apache-2.0", - "Artistic-2.0", - "BSD-2-Clause", - "BSD-3-Clause", - "CC0-1.0", - "ISC", - "MIT", - "MPL-2.0", - "OFL-1.1", - "Ubuntu-font-1.0", - "Unicode-3.0", - "Zlib", - - "LicenseRef-Komorebi-2.0", - # these are also ok, but not yet used - - # "BSL-1.0", - # "MIT-0", -] -confidence-threshold = 0.8 - -[[licenses.clarify]] -crate = "komorebi" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-macos" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-scrolling" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-layouts" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-themes" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-version" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-backend" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-bar" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-bar-core" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-client" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-collections" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-config" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-core" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-protocol" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-settings" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebi-transport" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebic" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "komorebic-core" -expression = "LicenseRef-Komorebi-2.0" -license-files = [] - -[[licenses.clarify]] -crate = "base16-egui-themes" -expression = "MIT" -license-files = [] - -[bans] -multiple-versions = "allow" -wildcards = "allow" -highlight = "all" -workspace-default-features = "allow" -external-default-features = "allow" - -[sources] -unknown-registry = "deny" -unknown-git = "deny" -allow-registry = ["https://github.com/rust-lang/crates.io-index"] -allow-git = [ - "https://github.com/LGUG2Z/quickxml_to_serde", - "https://github.com/LGUG2Z/base16-egui-themes", - "https://github.com/LGUG2Z/flavours", - "https://github.com/LGUG2Z/komorebi", - "https://github.com/LGUG2Z/base16_color_scheme", - "https://github.com/LGUG2Z/catppuccin-egui", - "https://github.com/amPerl/egui-phosphor", -]