Skip to content

Commit

Permalink
json feature makes sense only when used with cli feature
Browse files Browse the repository at this point in the history
It therefore also implies --all-features
  • Loading branch information
tshepang committed Oct 4, 2023
1 parent 9f453fc commit 0864251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,15 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- name: Build (with no features)
run: cargo build --no-default-features

- name: Build
run: cargo build

- name: Build (with "json" feature)
run: cargo build --features json

- name: Build (with all features)
run: cargo build --all-features

- name: Build (with no features)
run: cargo build --no-default-features

security-audit:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ required-features = ["cli"]
[features]
default = ["cli"]
cli = ["dep:clap", "dep:ansi_term", "dep:anyhow"]
json = ["dep:serde_json", "dep:serde"]
json = ["dep:serde_json", "dep:serde", "cli"]

[dependencies]
dirs-next = "2"
Expand Down

0 comments on commit 0864251

Please sign in to comment.