diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index b5beeda..d9e59bf 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -31,7 +31,7 @@ jobs: bins: cargo-codspeed - name: Build the benchmark target(s) - run: cargo codspeed build -m ${{ matrix.mode }} -p num-prime-bench --no-default-features + run: cargo codspeed build -m ${{ matrix.mode }} -p num-prime-bench - name: Run the benchmarks uses: CodSpeedHQ/action@v4 diff --git a/bench/Cargo.toml b/bench/Cargo.toml index aa0059d..0e48f68 100644 --- a/bench/Cargo.toml +++ b/bench/Cargo.toml @@ -22,4 +22,5 @@ is_prime = "2.0.7" glass_pumpkin = "1.2.0" [features] -default = ["num-primes"] +default = [] +num-primes = ["dep:num-primes"]