From 35d8c6f675ed7b39dd9e3a4f705ad2e56fa13c43 Mon Sep 17 00:00:00 2001 From: stormshield-gt <143998166+stormshield-gt@users.noreply.github.com.> Date: Fri, 12 Jan 2024 08:36:58 +0100 Subject: [PATCH 1/2] Check that rustls-cert-gen can be build as a standalone package in the CI --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef5d7233..9a2613c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -177,6 +177,21 @@ jobs: - name: Run the tests with aws_lc_rs backend enabled run: cargo test --verbose --no-default-features --features aws_lc_rs,pem --all-targets + # Build rustls-cert-gen as a standalone package, see this PR for why it's needed: + # https://github.com/rustls/rcgen/pull/206#pullrequestreview-1816197358 + build-rustls-cert-gen-standalone: + name: Build rustls-cert-gen as a standalone package + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run the tests + run: cargo test --package rustls-cert-gen + coverage: name: Measure coverage runs-on: ubuntu-latest From 344d70b50d6caece277152270680d3da058fc7a6 Mon Sep 17 00:00:00 2001 From: stormshield-gt <143998166+stormshield-gt@users.noreply.github.com.> Date: Fri, 12 Jan 2024 08:42:58 +0100 Subject: [PATCH 2/2] Choose ring as crypto provider for rustls-cert-gen --- rustls-cert-gen/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustls-cert-gen/Cargo.toml b/rustls-cert-gen/Cargo.toml index b330531c..ba29e89b 100644 --- a/rustls-cert-gen/Cargo.toml +++ b/rustls-cert-gen/Cargo.toml @@ -7,7 +7,7 @@ edition.workspace = true keywords.workspace = true [dependencies] -rcgen = { path = "../rcgen", default-features = false, features = ["pem"] } +rcgen = { path = "../rcgen", default-features = false, features = ["pem", "ring"] } bpaf = { version = "0.9.5", features = ["derive"] } pem = { workspace = true } ring = { workspace = true }