diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98ed9ba3..84762fb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,13 @@ jobs: clippy: name: Clippy runs-on: ubuntu-latest + strategy: + matrix: + features: + - --all-features + - --no-default-features --features ring + - --no-default-features --features aws_lc_rs + - --no-default-features --features aws_lc_rs,pem steps: - name: Checkout sources uses: actions/checkout@v4 @@ -38,8 +45,7 @@ jobs: uses: dtolnay/rust-toolchain@stable with: components: clippy - - run: cargo clippy --all-features --all-targets - - run: cargo clippy --no-default-features --features aws_lc_rs,pem --all-targets + - run: cargo clippy ${{ matrix.features }} --all-targets rustdoc: name: Documentation diff --git a/rcgen/src/key_pair.rs b/rcgen/src/key_pair.rs index 3e50b83d..00197ac6 100644 --- a/rcgen/src/key_pair.rs +++ b/rcgen/src/key_pair.rs @@ -387,6 +387,7 @@ impl ExternalError for Result { } } +#[cfg(feature = "pem")] impl ExternalError for Result { fn _err(self) -> Result { self.map_err(|e| Error::PemError(e.to_string())) diff --git a/rustls-cert-gen/Cargo.toml b/rustls-cert-gen/Cargo.toml index a5e91adc..103cf4ea 100644 --- a/rustls-cert-gen/Cargo.toml +++ b/rustls-cert-gen/Cargo.toml @@ -7,5 +7,5 @@ edition.workspace = true keywords.workspace = true [dependencies] -rcgen = { path = "../rcgen", default-features = false } +rcgen = { path = "../rcgen", default-features = false, features = ["pem"] } pem = { workspace = true }