diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 60d14db..dab94ad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: - package-ecosystem: "cargo" directory: "/" schedule: - interval: "weekly" + interval: "monthly" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 94db84f..c46937b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,6 +25,12 @@ jobs: targets: ${{ matrix.target }} components: 'rustfmt, clippy' + - name: Install cargo tools + uses: taiki-e/install-action@v2 + with: + tool: cargo-hack,cargo-minimal-versions + if: matrix.rust == 'nightly' && matrix.cargo_features == 'default' + - uses: actions/checkout@v4 - name: Install LLVM @@ -47,14 +53,18 @@ jobs: - name: Test run: cargo +${{ matrix.rust }} test --no-default-features --features "${{ matrix.cargo_features }}" - - name: Benchmark - run: cargo +${{ matrix.rust }} bench --no-default-features --features "${{ matrix.cargo_features }}" - if: matrix.rust == 'nightly' && matrix.cargo_features == 'default' - - name: Minimal versions - run: cargo +${{ matrix.rust }} -Zdirect-minimal-versions test --no-default-features --features "${{ matrix.cargo_features }}" + # cargo-minimal-versions won't detach the path deps if we're using dev dependencies + # so we won't catch the case where we compile but fail tests because of path dependencies + run: | + cargo +${{ matrix.rust }} minimal-versions check --detach-path-deps --direct --workspace + cargo +${{ matrix.rust }} minimal-versions test --direct --workspace if: matrix.rust == 'nightly' && matrix.cargo_features == 'default' - name: Updated versions run: cargo update && cargo +${{ matrix.rust }} test --no-default-features --features "${{ matrix.cargo_features }}" if: matrix.rust == 'stable' && matrix.cargo_features == 'default' + + - name: Benchmark + run: cargo +${{ matrix.rust }} bench --no-default-features --features "${{ matrix.cargo_features }}" + if: matrix.rust == 'nightly' && matrix.cargo_features == 'default' diff --git a/croaring-sys/Cargo.toml b/croaring-sys/Cargo.toml index 403886a..d87fd16 100644 --- a/croaring-sys/Cargo.toml +++ b/croaring-sys/Cargo.toml @@ -20,4 +20,4 @@ doctest = false [dependencies] [build-dependencies] -cc = "1" +cc = "1.1" diff --git a/croaring/Cargo.toml b/croaring/Cargo.toml index 6e57acd..2eacddc 100644 --- a/croaring/Cargo.toml +++ b/croaring/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "croaring" -version = "2.0.2" +version = "2.0.3" edition = "2021" authors = ["croaring-rs developers"] license = "Apache-2.0" @@ -25,7 +25,7 @@ roaring = "0.10" criterion = { version = "0.5", features = ["html_reports"] } [dependencies] -ffi = { package = "croaring-sys", path = "../croaring-sys", version = "4.1.0" } +ffi = { package = "croaring-sys", path = "../croaring-sys", version = "~4.1.1" } [[bench]] name = "benches"