From 9774555ba948190a10274b1f927b4b1135db4f1e Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 9 Jan 2026 10:46:09 +0800 Subject: [PATCH] chore: it's 2026 now Signed-off-by: tison --- .cargo/config.toml | 2 +- .github/semantic.yml | 2 +- .github/workflows/ci-bootstrap.yml | 4 ++-- .github/workflows/ci.yml | 20 ++++++++++++++--- .gitignore | 4 ---- Cargo.lock | 36 +++++++++++++++--------------- Cargo.toml | 2 +- README.md | 4 ++-- licenserc.toml | 4 ++-- rust-toolchain.toml | 2 +- rustfmt.toml | 2 +- taplo.toml | 2 +- template/Cargo.toml | 2 +- template/src/lib.rs | 2 +- typos.toml | 2 +- xtask/Cargo.toml | 2 +- xtask/src/bootstrap-done.rs | 2 +- xtask/src/bootstrap.rs | 2 +- xtask/src/main.rs | 2 +- 19 files changed, 54 insertions(+), 44 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 37825e9..57745fb 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/semantic.yml b/.github/semantic.yml index c5efb2d..ac0810f 100644 --- a/.github/semantic.yml +++ b/.github/semantic.yml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/ci-bootstrap.yml b/.github/workflows/ci-bootstrap.yml index 547eaf9..b263bbe 100644 --- a/.github/workflows/ci-bootstrap.yml +++ b/.github/workflows/ci-bootstrap.yml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ concurrency: jobs: bootstrap: name: Bootstrap - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v6 - name: Install toolchain diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index babee82..d0e764e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ concurrency: jobs: check: name: Check - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v6 - name: Install toolchain @@ -48,12 +48,26 @@ jobs: tool: typos-cli,taplo-cli,hawkeye - run: cargo x lint + msrv: + name: Resolve MSRV + runs-on: ubuntu-24.04 + outputs: + rust-versions: ${{ steps.metadata.outputs.rust-versions }} + steps: + - uses: actions/checkout@v6 + - id: metadata + run: | + msrv=$(yq '.workspace.package.rust-version' Cargo.toml) + echo "MSRV: $msrv" + echo "rust-versions=[\"${msrv}\", \"stable\"]" >> "$GITHUB_OUTPUT" + test: name: Run tests + needs: msrv strategy: matrix: os: [ ubuntu-24.04, macos-14, windows-2022 ] - rust-version: [ "1.85.0", "stable" ] + rust-version: ${{ fromJson(needs.msrv.outputs.rust-versions) }} runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 diff --git a/.gitignore b/.gitignore index 31222b7..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ /target - -# temporary files -.DS_Store -__pycache__ diff --git a/Cargo.lock b/Cargo.lock index 221140a..ca10b87 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -66,9 +66,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "clap" -version = "4.5.53" +version = "4.5.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e340e012a1bf4935f5282ed1436d1489548e8f72308207ea5df0e23d2d03f8" +checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394" dependencies = [ "clap_builder", "clap_derive", @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.53" +version = "4.5.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76b5d13eaa18c901fd2f7fca939fefe3a0727a953561fefdf3b2922b8569d00" +checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00" dependencies = [ "anstream", "anstyle", @@ -204,9 +204,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "indexmap" -version = "2.12.1" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown", @@ -220,9 +220,9 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" [[package]] name = "libc" -version = "0.2.178" +version = "0.2.180" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" [[package]] name = "linux-raw-sys" @@ -250,18 +250,18 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "proc-macro2" -version = "1.0.103" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" +checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.42" +version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f" +checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a" dependencies = [ "proc-macro2", ] @@ -274,9 +274,9 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] name = "rustix" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" dependencies = [ "bitflags", "errno", @@ -319,9 +319,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" -version = "2.0.111" +version = "2.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" dependencies = [ "proc-macro2", "quote", @@ -330,9 +330,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.23.0" +version = "3.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16" +checksum = "655da9c7eb6305c55742045d5a8d2037996d61d8de95806335c7c86ce0f82e9c" dependencies = [ "fastrand", "getrandom", diff --git a/Cargo.toml b/Cargo.toml index 21ed69b..61ee6f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 0f38aca..ef2cf61 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Use this repository as a GitHub template to quickly start a new Rust project. ## Minimum Rust version policy -This crate is built against the latest stable release, and its minimum supported rustc version is 1.85.0. +This crate's minimum supported `rustc` version is `1.85.0`. -The policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if version 1.0 requires Rust 1.60.0, then version 1.0.z for all values of z will also require Rust 1.60.0 or newer. However, version 1.y for y > 0 may require a newer minimum version of Rust. +The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if `crate 1.0` requires Rust 1.85.0, then `crate 1.0.z` for all values of `z` will also require Rust 1.85.0 or newer. However, `crate 1.y` for `y > 0` may require a newer minimum version of Rust. ## License diff --git a/licenserc.toml b/licenserc.toml index 9ce2ed4..8d083eb 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,4 +18,4 @@ includes = ['**/*.proto', '**/*.rs', '**/*.yml', '**/*.yaml', '**/*.toml'] [properties] copyrightOwner = "FastLabs Developers" -inceptionYear = 2025 +inceptionYear = 2026 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5b7c2ec..c9bb472 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rustfmt.toml b/rustfmt.toml index d7dfa13..29f0ac2 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/taplo.toml b/taplo.toml index f51fa16..1cb0f3a 100644 --- a/taplo.toml +++ b/taplo.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/template/Cargo.toml b/template/Cargo.toml index 23a3b38..1adf196 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/template/src/lib.rs b/template/src/lib.rs index 5a120da..24a93a2 100644 --- a/template/src/lib.rs +++ b/template/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2025 FastLabs Developers +// Copyright 2026 FastLabs Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/typos.toml b/typos.toml index f42f30b..3d1ec5e 100644 --- a/typos.toml +++ b/typos.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 389a82f..bfe26e8 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -1,4 +1,4 @@ -# Copyright 2025 FastLabs Developers +# Copyright 2026 FastLabs Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/xtask/src/bootstrap-done.rs b/xtask/src/bootstrap-done.rs index 0f68bdb..fd911f0 100644 --- a/xtask/src/bootstrap-done.rs +++ b/xtask/src/bootstrap-done.rs @@ -1,4 +1,4 @@ -// Copyright 2025 FastLabs Developers +// Copyright 2026 FastLabs Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/xtask/src/bootstrap.rs b/xtask/src/bootstrap.rs index ef41888..a16ece3 100644 --- a/xtask/src/bootstrap.rs +++ b/xtask/src/bootstrap.rs @@ -1,4 +1,4 @@ -// Copyright 2025 FastLabs Developers +// Copyright 2026 FastLabs Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0b077c3..88233e3 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -1,4 +1,4 @@ -// Copyright 2025 FastLabs Developers +// Copyright 2026 FastLabs Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.