From 0a36c00f49acf6b58ae39f5d75ae7853f798b8d3 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 30 Nov 2024 22:37:21 +0100 Subject: [PATCH 1/3] Upgrade dependencies --- Cargo.lock | 304 ++++++++++++++++-------------------- Cargo.toml | 12 +- boulder/src/architecture.rs | 4 +- moss/src/dependency.rs | 4 +- moss/src/signal.rs | 2 +- 5 files changed, 149 insertions(+), 177 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6f36c393..6b95ef02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,7 +253,7 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -288,7 +288,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -332,9 +332,9 @@ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "blake3" -version = "1.5.4" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" dependencies = [ "arrayref", "arrayvec", @@ -413,7 +413,7 @@ dependencies = [ "stone", "stone_recipe", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", "thread-priority", "tokio", "tui", @@ -456,9 +456,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cast" @@ -468,9 +468,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc" dependencies = [ "jobserver", "libc", @@ -598,7 +598,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -640,7 +640,7 @@ dependencies = [ "fs-err", "serde", "serde_yaml", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -669,15 +669,9 @@ dependencies = [ "fs-err", "nix 0.27.1", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", ] -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -780,15 +774,15 @@ checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crossterm" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" +checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" dependencies = [ "bitflags", "crossterm_winapi", - "libc", - "mio 0.8.11", + "mio", "parking_lot", + "rustix", "signal-hook", "signal-hook-mio", "winapi", @@ -847,7 +841,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -858,7 +852,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -878,15 +872,23 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.18" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ - "convert_case", "proc-macro2", "quote", - "rustc_version", - "syn 2.0.89", + "syn 2.0.90", + "unicode-xid", ] [[package]] @@ -923,7 +925,7 @@ dependencies = [ "dsl_auto_type", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -943,7 +945,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "209c735641a413bc68c4923a9d6ad4bcb3ca306b794edaa7eb0b3228a99ffb25" dependencies = [ - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -985,7 +987,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -999,7 +1001,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1053,7 +1055,7 @@ checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1064,12 +1066,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -1085,9 +1087,9 @@ dependencies = [ [[package]] name = "event-listener-strategy" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" dependencies = [ "event-listener", "pin-project-lite", @@ -1121,7 +1123,7 @@ version = "0.24.5" dependencies = [ "regex", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -1141,9 +1143,9 @@ dependencies = [ [[package]] name = "fs-err" -version = "2.11.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +checksum = "8bb60e7409f34ef959985bc9d9c5ee8f5db24ee46ed9775850548021710f807f" dependencies = [ "autocfg", "tokio", @@ -1218,7 +1220,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1348,12 +1350,6 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -[[package]] -name = "hermit-abi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" - [[package]] name = "hermit-abi" version = "0.4.0" @@ -1601,7 +1597,7 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1661,7 +1657,7 @@ dependencies = [ "proc-macro2", "quote", "strum", - "syn 2.0.89", + "syn 2.0.90", "thiserror 1.0.69", ] @@ -1690,7 +1686,7 @@ version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" dependencies = [ - "hermit-abi 0.4.0", + "hermit-abi", "libc", "windows-sys 0.52.0", ] @@ -1736,10 +1732,11 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.72" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" +checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -1751,9 +1748,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.164" +version = "0.2.167" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" +checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" [[package]] name = "libredox" @@ -1767,9 +1764,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.28.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" dependencies = [ "cc", "pkg-config", @@ -1883,25 +1880,13 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.11" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", "log", "wasi", - "windows-sys 0.48.0", -] - -[[package]] -name = "mio" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "wasi", "windows-sys 0.52.0", ] @@ -1937,7 +1922,7 @@ dependencies = [ "sha2", "stone", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-util", "triggers", @@ -2191,7 +2176,7 @@ checksum = "a604568c3202727d1507653cb121dbd627a58684eb09a820fd746bee38b4442f" dependencies = [ "cfg-if 1.0.0", "concurrent-queue", - "hermit-abi 0.4.0", + "hermit-abi", "pin-project-lite", "rustix", "tracing", @@ -2479,18 +2464,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" - -[[package]] -name = "rustc_version" -version = "0.4.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" -dependencies = [ - "semver", -] +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "rustix" @@ -2507,9 +2483,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.18" +version = "0.23.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c9cc1d47e243d655ace55ed38201c19ae02c148ae56412ab8750e8f0166ab7f" +checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" dependencies = [ "once_cell", "ring", @@ -2575,12 +2551,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" -[[package]] -name = "semver" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" - [[package]] name = "serde" version = "1.0.215" @@ -2598,7 +2568,7 @@ checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2621,7 +2591,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2663,18 +2633,7 @@ name = "serpent_buildinfo" version = "0.24.5" dependencies = [ "chrono", - "thiserror 1.0.69", -] - -[[package]] -name = "sha1" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" -dependencies = [ - "cfg-if 1.0.0", - "cpufeatures", - "digest", + "thiserror 2.0.3", ] [[package]] @@ -2717,7 +2676,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" dependencies = [ "libc", - "mio 0.8.11", + "mio", "signal-hook", ] @@ -2747,9 +2706,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", "windows-sys 0.52.0", @@ -2779,7 +2738,7 @@ version = "0.24.5" dependencies = [ "criterion", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", "xxhash-rust", "zstd", ] @@ -2792,7 +2751,7 @@ dependencies = [ "serde", "serde_yaml", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", "url", ] @@ -2821,7 +2780,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2853,9 +2812,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.89" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -2879,7 +2838,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2921,7 +2880,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2932,7 +2891,7 @@ checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3024,7 +2983,7 @@ dependencies = [ "backtrace", "bytes", "libc", - "mio 1.0.2", + "mio", "parking_lot", "pin-project-lite", "signal-hook-registry", @@ -3041,7 +3000,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3122,9 +3081,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-attributes", @@ -3133,13 +3092,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3159,7 +3118,7 @@ dependencies = [ "fnmatch", "serde", "serde_yaml", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -3212,6 +3171,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + [[package]] name = "unix_socket" version = "0.5.0" @@ -3331,7 +3296,7 @@ name = "vfs" version = "0.1.0" dependencies = [ "indextree", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -3361,9 +3326,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" +checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c" dependencies = [ "cfg-if 1.0.0", "once_cell", @@ -3372,36 +3337,37 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" +checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.45" +version = "0.4.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +checksum = "9dfaf8f50e5f293737ee323940c7d8b08a66a95a419223d9f41610ca08b0833d" dependencies = [ "cfg-if 1.0.0", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" +checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3409,22 +3375,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" +checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49" [[package]] name = "wasm-streams" @@ -3441,9 +3407,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.72" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" +checksum = "a98bc3c33f0fe7e59ad7cd041b89034fa82a7c2d4365ca538dda6cdaf513863c" dependencies = [ "js-sys", "wasm-bindgen", @@ -3747,15 +3713,15 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure", ] [[package]] name = "zbus" -version = "4.4.0" +version = "5.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725" +checksum = "1162094dc63b1629fcc44150bcceeaa80798cd28bcbe7fa987b65a034c258608" dependencies = [ "async-broadcast", "async-executor", @@ -3770,19 +3736,17 @@ dependencies = [ "enumflags2", "event-listener", "futures-core", - "futures-sink", "futures-util", "hex", "nix 0.29.0", "ordered-stream", - "rand", "serde", "serde_repr", - "sha1", "static_assertions", "tracing", "uds_windows", - "windows-sys 0.52.0", + "windows-sys 0.59.0", + "winnow", "xdg-home", "zbus_macros", "zbus_names", @@ -3791,25 +3755,28 @@ dependencies = [ [[package]] name = "zbus_macros" -version = "4.4.0" +version = "5.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e" +checksum = "2cd2dcdce3e2727f7d74b7e33b5a89539b3cc31049562137faf7ae4eb86cd16d" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", + "zbus_names", + "zvariant", "zvariant_utils", ] [[package]] name = "zbus_names" -version = "3.0.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c" +checksum = "856b7a38811f71846fd47856ceee8bccaec8399ff53fb370247e66081ace647b" dependencies = [ "serde", "static_assertions", + "winnow", "zvariant", ] @@ -3831,7 +3798,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3851,7 +3818,7 @@ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure", ] @@ -3880,7 +3847,7 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3913,37 +3880,42 @@ dependencies = [ [[package]] name = "zvariant" -version = "4.2.0" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe" +checksum = "a1200ee6ac32f1e5a312e455a949a4794855515d34f9909f4a3e082d14e1a56f" dependencies = [ "endi", "enumflags2", "serde", "static_assertions", + "winnow", "zvariant_derive", + "zvariant_utils", ] [[package]] name = "zvariant_derive" -version = "4.2.0" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449" +checksum = "687e3b97fae6c9104fbbd36c73d27d149abf04fb874e2efbd84838763daa8916" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "zvariant_utils", ] [[package]] name = "zvariant_utils" -version = "2.1.0" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340" +checksum = "20d1d011a38f12360e5fcccceeff5e2c42a8eb7f27f0dcba97a0862ede05c9c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "serde", + "static_assertions", + "syn 2.0.90", + "winnow", ] diff --git a/Cargo.toml b/Cargo.toml index d119184d..f8997344 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ clap = { version = "4.5.8", features = ["derive", "string"] } clap_complete = "4.5.37" clap_mangen = "0.2.24" criterion = { version = "0.5.1", features = ["html_reports"] } -crossterm = "0.27.0" -derive_more = "0.99.18" +crossterm = "0.28.1" +derive_more = { version = "1.0.0", features = ["as_ref", "display", "from", "into"] } dialoguer = "0.11.0" diesel = { version = "2.2.1", features = ["sqlite", "returning_clauses_for_sqlite_3_35"] } diesel_migrations = "2.2.0" @@ -31,12 +31,12 @@ dirs = "5.0.1" elf = "0.7.4" indicatif = "0.17.8" itertools = "0.13.0" -fs-err = { version = "2.11.0", features = ["tokio"] } +fs-err = { version = "3.0.0", features = ["tokio"] } futures = "0.3.30" glob = "0.3.1" hex = "0.4.3" indextree = "4.6.1" -libsqlite3-sys = { version = "0.28.0", features = ["bundled"] } +libsqlite3-sys = { version = "0.30.1", features = ["bundled"] } log = "0.4.22" nom = "7.1.3" nix = { version = "0.27.1", features = ["user", "fs", "sched", "process", "mount", "hostname", "signal", "term"] } @@ -50,7 +50,7 @@ serde_json = "1.0.120" serde_yaml = "0.9.34" sha2 = "0.10.8" strum = { version = "0.26.3", features = ["derive"] } -thiserror = "1.0.61" +thiserror = "2.0.3" thread-priority = "1.1.0" tokio = { version = "1.38.0", features = ["full"] } tokio-stream = { version = "0.1.15", features = ["time"] } @@ -61,7 +61,7 @@ varlink_generator = "10.1.0" xxhash-rust = { version = "0.8.11", features = ["xxh3"] } zstd = { version = "0.13.2", features = ["zstdmt"] } mailparse = "0.15.0" -zbus = "4.4.0" +zbus = "5.1.1" [profile.release] lto = "thin" diff --git a/boulder/src/architecture.rs b/boulder/src/architecture.rs index a0c12441..a44ba6c6 100644 --- a/boulder/src/architecture.rs +++ b/boulder/src/architecture.rs @@ -39,9 +39,9 @@ impl Architecture { #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Display)] pub enum BuildTarget { - #[display(fmt = "{_0}")] + #[display("{_0}")] Native(Architecture), - #[display(fmt = "emul32/{_0}")] + #[display("emul32/{_0}")] Emul32(Architecture), } diff --git a/moss/src/dependency.rs b/moss/src/dependency.rs index efd862c9..101bfa01 100644 --- a/moss/src/dependency.rs +++ b/moss/src/dependency.rs @@ -98,7 +98,7 @@ impl From for payload::meta::Dependency { /// A Dependency in moss is simplistic in that it only contains /// a target and a Kind, ie. `pkgconfig(zlib)` #[derive(Debug, Clone, PartialEq, Eq, Hash, Display)] -#[display(fmt = "{kind}({name})")] +#[display("{kind}({name})")] pub struct Dependency { /// Specific type of dependency pub kind: Kind, @@ -168,7 +168,7 @@ impl TryFrom for Dependency { /// A provider is the inverse of a [`Dependency`] - providing the matching requirement #[derive(Debug, Clone, PartialEq, Eq, Hash, Display)] -#[display(fmt = "{kind}({name})")] +#[display("{kind}({name})")] pub struct Provider { /// Specific type of dependency pub kind: Kind, diff --git a/moss/src/signal.rs b/moss/src/signal.rs index d408c9d4..013f0ae1 100644 --- a/moss/src/signal.rs +++ b/moss/src/signal.rs @@ -30,7 +30,7 @@ pub fn ignore(signals: impl IntoIterator) -> Result // https://www.freedesktop.org/wiki/Software/systemd/inhibit/ pub fn inhibit(what: Vec<&str>, who: String, why: String, mode: String) -> Result { - let conn = zbus::blocking::ConnectionBuilder::system()?.build()?; + let conn = zbus::blocking::Connection::system()?; let msg = conn.call_method( Some("org.freedesktop.login1"), "/org/freedesktop/login1", From 81d535f7081555c8cc8d95cc1d98cf5712ecff9f Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 30 Nov 2024 22:37:46 +0100 Subject: [PATCH 2/3] Fix clippy lints --- boulder/src/build.rs | 2 +- moss/src/varlink/com_serpentos_moss.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boulder/src/build.rs b/boulder/src/build.rs index b8a47d74..ec768317 100644 --- a/boulder/src/build.rs +++ b/boulder/src/build.rs @@ -377,7 +377,7 @@ fn breakpoint_line( let has_key = |line: &str, key: &str| { line.split_once(':') - .map_or(false, |(leading, _)| leading.trim().ends_with(key)) + .is_some_and(|(leading, _)| leading.trim().ends_with(key)) }; let mut lines = recipe diff --git a/moss/src/varlink/com_serpentos_moss.rs b/moss/src/varlink/com_serpentos_moss.rs index ec68a010..0ad730b5 100644 --- a/moss/src/varlink/com_serpentos_moss.rs +++ b/moss/src/varlink/com_serpentos_moss.rs @@ -107,7 +107,7 @@ impl From<&varlink::Reply> for ErrorKind { } } pub trait VarlinkCallError: varlink::CallTrait {} -impl<'a> VarlinkCallError for varlink::Call<'a> {} +impl VarlinkCallError for varlink::Call<'_> {} #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] pub struct Version_Reply { pub r#version: String, @@ -120,7 +120,7 @@ pub trait Call_Version: VarlinkCallError { self.reply_struct(Version_Reply { r#version }.into()) } } -impl<'a> Call_Version for varlink::Call<'a> {} +impl Call_Version for varlink::Call<'_> {} pub trait VarlinkInterface { fn version(&self, call: &mut dyn Call_Version) -> varlink::Result<()>; fn call_upgraded(&self, _call: &mut varlink::Call, _bufreader: &mut dyn BufRead) -> varlink::Result> { From b66623a8ff5bdde5ba4d53bdb4d1c664aba3e589 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 30 Nov 2024 22:46:11 +0100 Subject: [PATCH 3/3] Switch futures -> futures-util --- Cargo.lock | 32 ++------------------------------ Cargo.toml | 2 +- boulder/Cargo.toml | 2 +- boulder/src/build/upstream.rs | 2 +- boulder/src/cli/recipe.rs | 2 +- boulder/src/draft/upstream.rs | 2 +- moss/Cargo.toml | 2 +- moss/src/client/cache.rs | 2 +- moss/src/client/mod.rs | 2 +- moss/src/repository/manager.rs | 2 +- moss/src/repository/mod.rs | 2 +- moss/src/request.rs | 2 +- 12 files changed, 13 insertions(+), 41 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b95ef02..e58a974b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -397,7 +397,7 @@ dependencies = [ "dirs", "elf", "fs-err", - "futures", + "futures-util", "glob", "hex", "itertools 0.13.0", @@ -1151,21 +1151,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "futures" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" version = "0.3.31" @@ -1173,7 +1158,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", - "futures-sink", ] [[package]] @@ -1182,17 +1166,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" -[[package]] -name = "futures-executor" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.31" @@ -1241,7 +1214,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ - "futures-channel", "futures-core", "futures-io", "futures-macro", @@ -1908,7 +1880,7 @@ dependencies = [ "diesel_migrations", "fnmatch", "fs-err", - "futures", + "futures-util", "hex", "itertools 0.13.0", "libsqlite3-sys", diff --git a/Cargo.toml b/Cargo.toml index f8997344..87eb523e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ elf = "0.7.4" indicatif = "0.17.8" itertools = "0.13.0" fs-err = { version = "3.0.0", features = ["tokio"] } -futures = "0.3.30" +futures-util = "0.3.31" glob = "0.3.1" hex = "0.4.3" indextree = "4.6.1" diff --git a/boulder/Cargo.toml b/boulder/Cargo.toml index 47b92ffb..8f2da17a 100644 --- a/boulder/Cargo.toml +++ b/boulder/Cargo.toml @@ -33,7 +33,7 @@ dirs.workspace = true elf.workspace = true glob.workspace = true fs-err.workspace = true -futures.workspace = true +futures-util.workspace = true hex.workspace = true itertools.workspace = true nix.workspace = true diff --git a/boulder/src/build/upstream.rs b/boulder/src/build/upstream.rs index c158ef32..b2333b72 100644 --- a/boulder/src/build/upstream.rs +++ b/boulder/src/build/upstream.rs @@ -10,7 +10,7 @@ use std::{ }; use fs_err as fs; -use futures::{stream, StreamExt, TryStreamExt}; +use futures_util::{stream, StreamExt, TryStreamExt}; use moss::runtime; use nix::unistd::{linkat, LinkatFlags}; use sha2::{Digest, Sha256}; diff --git a/boulder/src/cli/recipe.rs b/boulder/src/cli/recipe.rs index 8fb3f920..a950de5c 100644 --- a/boulder/src/cli/recipe.rs +++ b/boulder/src/cli/recipe.rs @@ -14,7 +14,7 @@ use boulder::{ }; use clap::Parser; use fs_err as fs; -use futures::StreamExt; +use futures_util::StreamExt; use itertools::Itertools; use moss::{request, runtime}; use sha2::{Digest, Sha256}; diff --git a/boulder/src/draft/upstream.rs b/boulder/src/draft/upstream.rs index 30ece8f1..342c71de 100644 --- a/boulder/src/draft/upstream.rs +++ b/boulder/src/draft/upstream.rs @@ -1,7 +1,7 @@ use std::{io, path::Path, process::ExitStatus, time::Duration}; use fs_err::tokio::{self as fs, File}; -use futures::{stream, StreamExt, TryStreamExt}; +use futures_util::{stream, StreamExt, TryStreamExt}; use moss::{environment, request, runtime}; use sha2::{Digest, Sha256}; use thiserror::Error; diff --git a/moss/Cargo.toml b/moss/Cargo.toml index 6fe9ec93..8122d555 100644 --- a/moss/Cargo.toml +++ b/moss/Cargo.toml @@ -29,7 +29,7 @@ diesel_migrations.workspace = true itertools.workspace = true fnmatch = { path = "../crates/fnmatch" } fs-err.workspace = true -futures.workspace = true +futures-util.workspace = true hex.workspace = true libsqlite3-sys.workspace = true log.workspace = true diff --git a/moss/src/client/cache.rs b/moss/src/client/cache.rs index a5e036b7..0e76906e 100644 --- a/moss/src/client/cache.rs +++ b/moss/src/client/cache.rs @@ -12,7 +12,7 @@ use std::{ }; use fs_err::tokio::{self as fs, File}; -use futures::StreamExt; +use futures_util::StreamExt; use thiserror::Error; use tokio::io::AsyncWriteExt; use url::Url; diff --git a/moss/src/client/mod.rs b/moss/src/client/mod.rs index 1e645c1a..a3a72097 100644 --- a/moss/src/client/mod.rs +++ b/moss/src/client/mod.rs @@ -17,7 +17,7 @@ use std::{ }; use fs_err::{self as fs, create_dir_all}; -use futures::{stream, StreamExt, TryStreamExt}; +use futures_util::{stream, StreamExt, TryStreamExt}; use nix::{ errno::Errno, fcntl::{self, OFlag}, diff --git a/moss/src/repository/manager.rs b/moss/src/repository/manager.rs index ad239d0a..9a27ecb3 100644 --- a/moss/src/repository/manager.rs +++ b/moss/src/repository/manager.rs @@ -8,7 +8,7 @@ use std::path::{Path, PathBuf}; use std::time::Duration; use fs_err::{self as fs, File}; -use futures::{stream, StreamExt, TryStreamExt}; +use futures_util::{stream, StreamExt, TryStreamExt}; use thiserror::Error; use xxhash_rust::xxh3::xxh3_64; diff --git a/moss/src/repository/mod.rs b/moss/src/repository/mod.rs index d8b6af76..1ee4a234 100644 --- a/moss/src/repository/mod.rs +++ b/moss/src/repository/mod.rs @@ -7,7 +7,7 @@ use std::path::PathBuf; use derive_more::{Display, From, Into}; use fs_err::tokio::File; -use futures::StreamExt; +use futures_util::StreamExt; use serde::{Deserialize, Serialize}; use thiserror::Error; use tokio::io::{self, AsyncWriteExt}; diff --git a/moss/src/request.rs b/moss/src/request.rs index ab2eec6e..4aa504dd 100644 --- a/moss/src/request.rs +++ b/moss/src/request.rs @@ -6,7 +6,7 @@ use std::{io, path::PathBuf, sync::OnceLock}; use bytes::Bytes; use fs_err::tokio::File; -use futures::{ +use futures_util::{ stream::{self, BoxStream}, Stream, StreamExt, };