diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 855420e29c..1d1c9513ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,3 +134,22 @@ jobs: - name: doc tests io-uring run: | sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=nightly cargo ci-doctest" + + minimal-versions: + name: minimal versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Rust (nightly) + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 + with: + toolchain: nightly + + - name: Install cargo-hack & cargo-minimal-versions + uses: taiki-e/install-action@v2.21.2 + with: + tool: cargo-hack,cargo-minimal-versions + + - name: Check With Minimal Versions + run: cargo minimal-versions check diff --git a/actix-macros/Cargo.toml b/actix-macros/Cargo.toml index 39f021e7b0..e5ff0784b7 100644 --- a/actix-macros/Cargo.toml +++ b/actix-macros/Cargo.toml @@ -13,11 +13,6 @@ license.workspace = true edition.workspace = true rust-version.workspace = true -[package.metadata.cargo-machete] -ignored = [ - "proc_macro2", # specified for minimal versions compat -] - [lib] proc-macro = true @@ -25,9 +20,6 @@ proc-macro = true quote = "1" syn = { version = "2", features = ["full"] } -# minimal versions compat -proc-macro2 = "1.0.60" - [dev-dependencies] actix-rt = "2"