Skip to content

Commit ac98ddf

Browse files
h4x0rclaude
andcommitted
fix(ci): use --no-default-features for MSRV 1.70 test matrix
clap_derive 4.5.55 requires rustc 1.74+. MSRV job now tests lib-only (no clap) to verify the zero-dep library compiles on 1.70. Stable job tests default features, fs feature, and doc-tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac37e09 commit ac98ddf

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,19 @@ jobs:
2121
with:
2222
toolchain: ${{ matrix.rust }}
2323
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
24-
- run: cargo test --lib
25-
- run: cargo test --doc
24+
# MSRV job: test lib only (no clap, which requires newer rustc)
25+
- name: Test lib (no default features)
26+
if: matrix.rust != 'stable'
27+
run: cargo test --no-default-features --lib
28+
- name: Test lib (default features)
29+
if: matrix.rust == 'stable'
30+
run: cargo test --lib
31+
- name: Test lib (fs feature)
32+
if: matrix.rust == 'stable'
33+
run: cargo test --features fs --lib
34+
- name: Doc-tests
35+
if: matrix.rust == 'stable'
36+
run: cargo test --doc
2637

2738
clippy:
2839
runs-on: ubuntu-latest
@@ -33,6 +44,7 @@ jobs:
3344
components: clippy
3445
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
3546
- run: cargo clippy --all-targets -- -D warnings
47+
- run: cargo clippy --all-targets --features fs -- -D warnings
3648

3749
fmt:
3850
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)