Skip to content

Commit 13764a5

Browse files
committed
fix aws verify 3rd party feature + add cargo-hack to CI
1 parent 5693362 commit 13764a5

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ jobs:
103103
working-directory: rcgen/
104104
run: cargo check-external-types --features aws_lc_rs_unstable,pem,x509-parser
105105

106+
cargo-hack:
107+
name: Validate all feature combinations work
108+
runs-on: ubuntu-latest
109+
steps:
110+
- name: Checkout sources
111+
uses: actions/checkout@v6
112+
with:
113+
persist-credentials: false
114+
- name: Install rust toolchain
115+
uses: dtolnay/rust-toolchain@stable
116+
- name: install cargo-hack
117+
uses: taiki-e/install-action@cargo-hack
118+
- name: cargo hack check
119+
run: cargo hack check --each-feature --no-dev-deps -p rcgen
120+
106121
semver:
107122
name: Check semver compatibility
108123
runs-on: ubuntu-latest

rcgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords.workspace = true
1212

1313
[features]
1414
default = ["crypto", "pem", "ring"]
15-
aws_lc_rs = ["crypto", "dep:aws-lc-rs", "aws-lc-rs/aws-lc-sys", "x509-parser?/verify-aws"]
15+
aws_lc_rs = ["crypto", "dep:aws-lc-rs", "aws-lc-rs/aws-lc-sys", "x509-parser?/verify-aws", "x509-parser?/verify"]
1616
aws_lc_rs_unstable = ["aws_lc_rs", "aws-lc-rs/unstable", "x509-parser?/verify-aws"]
1717
fips = ["crypto", "dep:aws-lc-rs", "aws-lc-rs/fips"]
1818
crypto = []

0 commit comments

Comments
 (0)