From 3488976b0a62ae5ecc89823066e0e29701412268 Mon Sep 17 00:00:00 2001 From: MotherSphere Date: Tue, 24 Nov 2026 12:21:10 +0100 Subject: [PATCH 1/3] ci: update the pinned actions and match the signing workflow in the Dependabot ignore rule taiki-e/install-action 2.90.3 to 2.90.8 and dtolnay/rust-toolchain master 2026-10-16 to 2026-11-15. The ignore rule named Project-Colony/Project-Colony-Resources, but Dependabot names the reusable workflow after its path, so it still proposed moving the organisation pin (#67). A trailing wildcard matches it, as in templates/dependabot.yml in Project-Colony-Resources. --- .github/dependabot.yml | 6 ++++-- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/release.yml | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2eb6e4c..d6b1dad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,9 +14,11 @@ updates: # The shared signing workflow stays at the organisation pin, which moves # for every program at once: design/releases.md in # Project-Colony-Resources, "The pin". A Dependabot PR would move one - # repository alone. + # repository alone. Dependabot names that dependency after the workflow + # path (Project-Colony/Project-Colony-Resources/.github/workflows/...), so + # the rule needs the trailing wildcard to match it. ignore: - - dependency-name: Project-Colony/Project-Colony-Resources + - dependency-name: "Project-Colony/Project-Colony-Resources*" groups: actions: patterns: ["*"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa59bf1..15daba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: # Pinned to master with `toolchain: stable` rather than to the `stable` # branch: that branch is rebased onto every master commit, so a SHA # pinned on it stops being reachable from any branch. - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master, 2026-10-16 + - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master, 2026-11-15 with: toolchain: stable @@ -119,7 +119,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master, 2026-10-16 + - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master, 2026-11-15 with: toolchain: stable components: rustfmt @@ -142,7 +142,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master, 2026-10-16 + - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master, 2026-11-15 with: toolchain: stable components: clippy @@ -167,11 +167,11 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - # Cargo.toml promises rust-version = 1.99. design/dependencies.md: an + # Cargo.toml promises rust-version = 1.100. design/dependencies.md: an # untested floor is a guess, so the promise belongs in CI. - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master, 2026-10-16 + - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master, 2026-11-15 with: - toolchain: "1.99" + toolchain: "1.100" - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: @@ -203,7 +203,7 @@ jobs: # The prebuilt RustSec binary, checked against a pinned SHA-256, rather # than several minutes of cargo install. - - uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3 + - uses: taiki-e/install-action@fe3acb53a98b62c772db35de75ce0e4595e7ca8c # v2.90.8 with: tool: cargo-audit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8ef0aa..5d0c7ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,7 +122,7 @@ jobs: # Pinned to master with `toolchain: stable` rather than to the `stable` # branch: that branch is rebased onto every master commit, so a SHA # pinned on it stops being reachable from any branch. - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master, 2026-10-16 + - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master, 2026-11-15 with: toolchain: stable targets: ${{ matrix.target }} From 1689fff21025892fd34ea3454ffb870559c9c57a Mon Sep 17 00:00:00 2001 From: MotherSphere Date: Tue, 24 Nov 2026 12:21:10 +0100 Subject: [PATCH 2/3] fix(deps): update dependencies and Rust to 1.100 url 2.5.9 fixes RUSTSEC-2026-0592. zbus 6.5.0, global-hotkey 0.10.0 and a cargo update of the lockfile. The rust-version, the CI msrv job and the install docs move to 1.100, which also brings Option::map_or_default. Fixes the lints clippy 1.100 adds: map_unwrap_or, redundant_clone, needless_nonzero_get and suboptimal_flops. --- Cargo.lock | 178 ++++++++++++++-------------- Cargo.toml | 6 +- README.md | 2 +- docs/guide/install.md | 2 +- docs/internals/contributing.md | 4 +- src/library/metadata/online/mod.rs | 2 +- src/library/mod.rs | 6 +- src/player/mod.rs | 5 +- src/system_integration/media/mod.rs | 5 +- src/ui/app/playback.rs | 8 +- src/ui/app/preferences/mod.rs | 2 +- src/ui/app/selection.rs | 3 +- 12 files changed, 107 insertions(+), 116 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7cfada5..78231e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,13 +26,14 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "ahash" -version = "0.8.12" +version = "0.8.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +checksum = "0fca89247609239eeb6915e6991111866b92d7b31025e69302bbf430cc4d2c38" dependencies = [ "cfg-if", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", + "serde", "version_check", "zerocopy", ] @@ -122,9 +123,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "arbitrary" @@ -134,9 +135,9 @@ checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" [[package]] name = "arc-swap" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db4c94f57a570fce5d381be3289b3f79aef6332d72948fe82ab5772e423ccf92" +checksum = "84a22b5d51209f6de83d37a0b33d320acb8da88823e42a94c075140708f032a5" dependencies = [ "rustversion", ] @@ -429,9 +430,9 @@ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" [[package]] name = "bit_field" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" +checksum = "cb2907cc03d08cdb1c6724ad0670ce67c4a71e1c45a6d7635224011714cfc4b1" [[package]] name = "bitflags" @@ -499,9 +500,9 @@ checksum = "5c0e531d93d39c34eef561e929e8a7f86d77a5af08aac4f6d6e39976c51858e9" [[package]] name = "bumpalo" -version = "3.20.3" +version = "3.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" [[package]] name = "bytemuck" @@ -537,9 +538,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "calloop" @@ -593,9 +594,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.11.1" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "jobserver", @@ -877,9 +878,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.5.4" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] @@ -1146,9 +1147,9 @@ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", "windows-sys 0.61.2", @@ -1347,9 +1348,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1539,9 +1540,9 @@ checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" [[package]] name = "global-hotkey" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adda8c76a5139df3bae0eb0413c2cd746f66594e0bb66231a4daa0be3172da70" +checksum = "96daa86bdc1413406daee362a835e52c430c2193e5a5c328d1e522be140d1764" dependencies = [ "crossbeam-channel", "keyboard-types", @@ -1651,7 +1652,7 @@ dependencies = [ "unicode-normalization", "windows 0.62.2", "winresource", - "zbus 6.2.1", + "zbus 6.5.0", ] [[package]] @@ -1728,9 +1729,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" [[package]] name = "hermit-abi" @@ -1791,9 +1792,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "hyper" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +checksum = "229c6ff5584df4c6becbfe00567128bac768c8cd32ebc8a8366bd81ed072e8f3" dependencies = [ "atomic-waker", "bytes", @@ -2190,7 +2191,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", - "hashbrown 0.17.1", + "hashbrown 0.17.2", ] [[package]] @@ -2634,9 +2635,9 @@ dependencies = [ [[package]] name = "mio" -version = "1.2.4" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" dependencies = [ "libc", "wasi", @@ -2827,7 +2828,7 @@ dependencies = [ "mac-notification-sys", "serde", "tauri-winrt-notification", - "zbus 6.2.1", + "zbus 6.5.0", ] [[package]] @@ -3459,29 +3460,29 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "pin-project" -version = "1.1.13" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +checksum = "a6c2123f4708bbd422630a6dae7c03f678b1ce1f1c99e4c4b3beac69c8174cc9" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.13" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +checksum = "358938fd6df944c1e44bb328b60fb275f13c804aac47ba26a1165d45a3f87756" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "pin-project-lite" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752" [[package]] name = "piper" @@ -3535,9 +3536,9 @@ dependencies = [ [[package]] name = "pollster" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336" +checksum = "7e9b9cf600136f5b976fbc5727d58c26e1ecab8ee23088d44ef1c7af793550ab" [[package]] name = "portable-atomic" @@ -3681,7 +3682,7 @@ dependencies = [ "bytes", "getrandom 0.4.3", "lru-slab", - "rand 0.10.3", + "rand 0.10.4", "rand_pcg", "ring", "rustc-hash 2.1.3", @@ -3741,9 +3742,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ "chacha20", "getrandom 0.4.3", @@ -3782,14 +3783,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d431c2703ccf129de4d45253c03f49ebb22b97d6ad79ee3ecfc7e3f4862c1d8" dependencies = [ "num-traits", - "rand 0.10.3", + "rand 0.10.4", ] [[package]] name = "rand_pcg" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +checksum = "eb95882a1e14462c69aea9984bb261293ccfe6022ef8de0eda18bd5afb0052df" dependencies = [ "rand_core 0.10.1", ] @@ -3802,9 +3803,9 @@ checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" [[package]] name = "rangemap" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" +checksum = "f2d43a8c8c74056248124068fde0df374d1ddf9039e747d190f01c36faeaab08" [[package]] name = "rav1e" @@ -4045,7 +4046,7 @@ dependencies = [ "cpal", "dasp_sample", "num-rational", - "rand 0.10.3", + "rand 0.10.4", "rand_distr", "rtrb", "symphonia", @@ -4139,9 +4140,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "web-time", "zeroize", @@ -4176,9 +4177,9 @@ checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" [[package]] name = "rustls-webpki" -version = "0.103.16" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "aws-lc-rs", "ring", @@ -4387,12 +4388,9 @@ dependencies = [ [[package]] name = "simd_helpers" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" -dependencies = [ - "quote", -] +checksum = "f48ea32978b7ad365bd1ecce83827746d5d50dc006a8c85112b7acc3c716e3e7" [[package]] name = "simdutf8" @@ -4437,9 +4435,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" [[package]] name = "smithay-client-toolkit" @@ -5070,9 +5068,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.25.19+spec-1.1.0" +version = "0.25.20+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +checksum = "e76360e201d6dbd6583e17795ba71a88f47365a9139c8450a7979c32303b8e73" dependencies = [ "indexmap", "toml_datetime", @@ -5082,9 +5080,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.5+spec-1.1.0" +version = "1.1.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31" dependencies = [ "winnow", ] @@ -5291,9 +5289,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -5318,9 +5316,9 @@ checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "uuid" -version = "1.29.2" +version = "1.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" +checksum = "3c14b15dffa2f4bd712103e857140aa04a4f2ff6e955c77d7eb8e53ee02a3b64" dependencies = [ "getrandom 0.4.3", "js-sys", @@ -5353,9 +5351,9 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "walkdir" -version = "2.5.0" +version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +checksum = "b42e295b7452c4604982280d8586001fcad9b8b201cac67bca9771e7a7475403" dependencies = [ "same-file", "winapi-util", @@ -5611,9 +5609,9 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" dependencies = [ "rustls-pki-types", ] @@ -6301,9 +6299,9 @@ dependencies = [ [[package]] name = "zbus" -version = "6.2.1" +version = "6.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ddb2961d9587ef9f24ad14cde1c3bc4c5edc9f1525932a8cffdd5bd98886eb9" +checksum = "9a7f9f5dd97fa527c1202ba1cb35d48e07f77d4de8542317c854f7aef22b0668" dependencies = [ "async-trait", "bitflags 2.13.2", @@ -6322,7 +6320,7 @@ dependencies = [ "uuid", "windows-sys 0.61.2", "winnow", - "zbus_macros 6.2.1", + "zbus_macros 6.5.0", "zbus_utils", "zcheapstr", "zruntime", @@ -6345,9 +6343,9 @@ dependencies = [ [[package]] name = "zbus_macros" -version = "6.2.1" +version = "6.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "083b38add47c340fc12ec560124fb1d9c23acb584f7021099f85ec6587a03c54" +checksum = "2f5aa7f2c4ea81b7ccfb26bafefdb4d1a44dd9d4f82c8426173a3727311743e4" dependencies = [ "proc-macro2", "quote", @@ -6381,9 +6379,9 @@ dependencies = [ [[package]] name = "zcheapstr" -version = "1.2.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920" +checksum = "2da34e7164b75d803c3197b86e6cf61b874106fbd472c5082575a8bc5fbd0907" dependencies = [ "serde", ] @@ -6396,18 +6394,18 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" [[package]] name = "zerocopy" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +checksum = "ed43f3060383c64b000f3c630550aebdfa9d3b76d48de32390483dd2cc7e0865" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +checksum = "a5cbd820fe3e35fb38c83b6dc7e6b1618bc46e0cd10073ae94e8d52dc468d8b9" dependencies = [ "proc-macro2", "quote", @@ -6437,9 +6435,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" [[package]] name = "zerotrie" @@ -6476,9 +6474,9 @@ dependencies = [ [[package]] name = "zlib-rs" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" +checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac" [[package]] name = "zmij" @@ -6488,9 +6486,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" [[package]] name = "zruntime" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ef5ed7d628cdf0af82f93dfe03330a8e37383bf7422a1d3d6eb72326680be5" +checksum = "ac67096b97c00742108c4674db6bb6178adb78c4b66a506b0e4a7a9593aa5d9e" dependencies = [ "futures-core", "futures-io", diff --git a/Cargo.toml b/Cargo.toml index 3640862..fcc1fa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "Desktop music player for a local library: scan, browse, play" repository = "https://github.com/Project-Colony/Grape" # The Rust release every Colony program builds with. The dependencies alone # need 1.92 (rfd 0.18.0, from `cargo metadata`); the CI msrv job builds here. -rust-version = "1.99" +rust-version = "1.100" [dependencies] iced = { version = "0.14.0", features = ["advanced", "image", "tokio"] } @@ -33,7 +33,7 @@ tokio = { version = "1.54.1", features = ["rt-multi-thread", "time", "sync"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] notify-rust = "4.19.0" -global-hotkey = "0.9.0" +global-hotkey = "0.10.0" # tray-icon's Linux backend goes through libappindicator and GTK 3, which needs # a GTK main loop iced/winit never runs; building a tray with it aborts the @@ -51,7 +51,7 @@ tray-icon = { version = "0.26.1", default-features = false, features = ["ksni"] # zbus refuses to build without one. [target.'cfg(target_os = "linux")'.dependencies] ksni = { version = "0.3.7", features = ["blocking"] } -zbus = "6.2.1" +zbus = "6.5.0" [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.62.2", features = ["Foundation", "Media", "Storage", "Storage_Streams", "Win32_Foundation", "Win32_System_Console", "Win32_System_WinRT"] } diff --git a/README.md b/README.md index 8e12bd1..e490fae 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ cd Grape cargo build --release ``` -Requires Rust 1.99 or newer. On Linux you also need `libasound2-dev` and +Requires Rust 1.100 or newer. On Linux you also need `libasound2-dev` and `pkg-config` for the audio backend, plus `clang` and `lld`: the repository pins the Linux linker to `clang -fuse-ld=lld`, and without them the build fails at link time in a way that looks like a Rust problem and is not. diff --git a/docs/guide/install.md b/docs/guide/install.md index 4953ce4..49e072e 100644 --- a/docs/guide/install.md +++ b/docs/guide/install.md @@ -41,7 +41,7 @@ cd Grape cargo build --release ``` -Requires **Rust 1.99 or newer**, the release every Colony program builds +Requires **Rust 1.100 or newer**, the release every Colony program builds with. `Cargo.toml` records it as `rust-version`, and CI builds at that floor. Two prerequisites are easy to miss: diff --git a/docs/internals/contributing.md b/docs/internals/contributing.md index 7ef6ea6..3f72482 100644 --- a/docs/internals/contributing.md +++ b/docs/internals/contributing.md @@ -9,7 +9,7 @@ cargo run --profile fast # optimized dependencies, incremental user code cargo build --release # what ships ``` -Requires Rust 1.99 or newer, and on Linux `libasound2-dev`, `pkg-config`, +Requires Rust 1.100 or newer, and on Linux `libasound2-dev`, `pkg-config`, `clang` and `lld`. The reasons are in [../guide/install.md](../guide/install.md#build-from-source), and the linker one in particular is worth reading before spending an afternoon on a link error. @@ -40,7 +40,7 @@ allows. A new warning anywhere fails the build, which is deliberate. | rustfmt | `cargo fmt --check` against the stable options in `.rustfmt.toml` | | clippy | `cargo clippy --all-targets` on Linux, Windows and macOS, with the lint set above, so any lint fails it | | test | `cargo build --all-targets` and `cargo test` on Linux, Windows and macOS; on Windows also the `.exe`'s version resource and GUI subsystem | -| minimum supported Rust | `cargo build` with Rust 1.99, the `rust-version` in `Cargo.toml` | +| minimum supported Rust | `cargo build` with Rust 1.100, the `rust-version` in `Cargo.toml` | | advisories | `cargo audit --deny warnings` over `Cargo.lock`, also weekly; exceptions in [dependency-exceptions.md](dependency-exceptions.md) | | colony.json | the manifest against the published schema | diff --git a/src/library/metadata/online/mod.rs b/src/library/metadata/online/mod.rs index 768dd12..da0fd62 100644 --- a/src/library/metadata/online/mod.rs +++ b/src/library/metadata/online/mod.rs @@ -132,7 +132,7 @@ pub async fn fetch_album_metadata( } } - let base_metadata = cached.as_ref().map(|entry| entry.metadata.clone()).unwrap_or_default(); + let base_metadata = cached.as_ref().map_or_default(|entry| entry.metadata.clone()); let metadata = match enrich_with_lastfm_metadata(base_metadata.clone(), api_key, artist, album).await { Ok(metadata) => metadata, diff --git a/src/library/mod.rs b/src/library/mod.rs index 34cb96a..7c61b6e 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -526,7 +526,7 @@ fn scan_artist_albums( select_album_cover(root, &album_path, &tracks, cached.album.cover.as_ref())?; let total_duration_secs = tracks.iter().map(|track| track.duration_secs).sum(); Album { - title: title.clone(), + title, year, tracks, genre, @@ -546,7 +546,7 @@ fn scan_artist_albums( let cover = select_album_cover(root, &album_path, &tracks, None)?; let total_duration_secs = tracks.iter().map(|track| track.duration_secs).sum(); Album { - title: title.clone(), + title, year, tracks, genre, @@ -950,7 +950,7 @@ fn scan_tracks_with_cache_in_dir( let key = cache::track_key(root, &path); let id = cache::track_id(root, &path); used_track_keys.insert(key.clone()); - used_track_ids.insert(id.clone()); + used_track_ids.insert(id); let cached_track = cached_by_path.get(&path); let mut duration_secs = 0; let mut duration_millis = None; diff --git a/src/player/mod.rs b/src/player/mod.rs index 0cb1ad2..f71fbb9 100644 --- a/src/player/mod.rs +++ b/src/player/mod.rs @@ -102,8 +102,7 @@ mod audio_options { let description = device.description().ok(); let name = description .as_ref() - .map(|description| description.name().to_string()) - .unwrap_or_default(); + .map_or_default(|description| description.name().to_string()); if is_usb_headset(description.as_ref(), &name) { info!(device = %name, "Selected USB headset output device"); return Ok(DeviceResolution { @@ -780,7 +779,7 @@ where fn next(&mut self) -> Option { let sample = self.source.next()?; let channel = self.channel_index as usize; - self.channel_index = (self.channel_index + 1) % self.channels.get(); + self.channel_index = (self.channel_index + 1) % self.channels; let mut processed = sample; if let Some(eq) = self.eq.as_mut() { processed = eq.apply(channel, processed); diff --git a/src/system_integration/media/mod.rs b/src/system_integration/media/mod.rs index 4659192..4e96a83 100644 --- a/src/system_integration/media/mod.rs +++ b/src/system_integration/media/mod.rs @@ -57,7 +57,7 @@ impl Track { artist: track.artist.clone(), album: track.album.clone(), cover_path: track.cover_path.clone(), - cover_url: track.cover_path.as_deref().map(file_url).unwrap_or_default(), + cover_url: track.cover_path.as_deref().map_or_default(file_url), url: file_url(&track.path), duration: track.duration, } @@ -69,8 +69,7 @@ fn file_url(path: &Path) -> String { std::path::absolute(path) .ok() .and_then(|path| reqwest::Url::from_file_path(path).ok()) - .map(|url| url.to_string()) - .unwrap_or_default() + .map_or_default(|url| url.to_string()) } #[derive(Debug, Clone, PartialEq)] diff --git a/src/ui/app/playback.rs b/src/ui/app/playback.rs index efe4669..5fcc7f3 100644 --- a/src/ui/app/playback.rs +++ b/src/ui/app/playback.rs @@ -56,7 +56,7 @@ impl GrapeApp { pub(crate) fn playback_queue_from_playlist(playlists: &PlaylistManager) -> PlaybackQueue { let mut queue = PlaybackQueue::default(); - let items = playlists.active().map(|playlist| playlist.items.clone()).unwrap_or_default(); + let items = playlists.active().map_or_default(|playlist| playlist.items.clone()); queue.set_queue(items); queue } @@ -222,11 +222,7 @@ impl GrapeApp { if let Some(player) = &mut self.player { player.cancel_gapless(); } - let items = self - .playlists - .active() - .map(|playlist| playlist.items.clone()) - .unwrap_or_default(); + let items = self.playlists.active().map_or_default(|playlist| playlist.items.clone()); let index = if let Some(index) = preferred_index { index.min(items.len().saturating_sub(1)) } else { diff --git a/src/ui/app/preferences/mod.rs b/src/ui/app/preferences/mod.rs index b1b024c..8f646a1 100644 --- a/src/ui/app/preferences/mod.rs +++ b/src/ui/app/preferences/mod.rs @@ -62,7 +62,7 @@ mod tests { // colony-ui's category_list: 180 wide at 1.0, then each nav_item's // horizontal padding and the list's right gutter. const LIST_WIDTH: f32 = 180.0; - const CHROME: f32 = 14.0 * 2.0 + 16.0; + const CHROME: f32 = 14.0f32.mul_add(2.0, 16.0); for (family, bytes) in [(APP_FAMILY, BYTES[0]), (DYSLEXIA_FAMILY, BYTES[3])] { let font = FontRef::new(bytes).expect("the font parses"); diff --git a/src/ui/app/selection.rs b/src/ui/app/selection.rs index f99548d..479781c 100644 --- a/src/ui/app/selection.rs +++ b/src/ui/app/selection.rs @@ -221,7 +221,6 @@ impl GrapeApp { .as_ref() .and_then(|folder| self.folder_entry_by_id(folder.id)) }) - .map(|(artist, album)| self.filtered_tracks_for_album(artist, album)) - .unwrap_or_default() + .map_or_default(|(artist, album)| self.filtered_tracks_for_album(artist, album)) } } From 9f8040494df6fc2affe88ddac0750c6f07e114c0 Mon Sep 17 00:00:00 2001 From: MotherSphere Date: Tue, 24 Nov 2026 13:16:12 +0100 Subject: [PATCH 3/3] fix(deps): keep global-hotkey at 0.9.0 global-hotkey 0.10.0 registers macOS hotkeys with kEventHotKeyExclusive and returns AlreadyRegistered when another program holds the combination. build_shortcuts registers Ctrl+Alt+P, Ctrl+Alt+Right and Ctrl+Alt+Left with `?`, so one taken combination would drop all three on macOS, and Grape would hold the other two exclusively. That changes what the global shortcuts setting does, so the bump stays out of this update. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 78231e1..143263f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1540,9 +1540,9 @@ checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" [[package]] name = "global-hotkey" -version = "0.10.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96daa86bdc1413406daee362a835e52c430c2193e5a5c328d1e522be140d1764" +checksum = "adda8c76a5139df3bae0eb0413c2cd746f66594e0bb66231a4daa0be3172da70" dependencies = [ "crossbeam-channel", "keyboard-types", diff --git a/Cargo.toml b/Cargo.toml index fcc1fa9..185f717 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ tokio = { version = "1.54.1", features = ["rt-multi-thread", "time", "sync"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] notify-rust = "4.19.0" -global-hotkey = "0.10.0" +global-hotkey = "0.9.0" # tray-icon's Linux backend goes through libappindicator and GTK 3, which needs # a GTK main loop iced/winit never runs; building a tray with it aborts the