diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4727193..99d37439 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,8 @@ jobs: - --features=alloc - --all-features - --no-default-features - - --no-default-features --features alloc,std,aws-lc-rs + - --no-default-features --features alloc,std,aws_lc_rs + - --no-default-features --features alloc,std,ring mode: - # debug @@ -127,7 +128,8 @@ jobs: - features: --features=alloc - features: --no-default-features - features: --no-default-features --features alloc,std - - features: --no-default-features --features alloc,std,aws-lc-rs + - features: --no-default-features --features alloc,std,aws_lc_rs + - features: --no-default-features --features alloc,std,ring - features: --all-features mode: --release - features: --all-features @@ -204,6 +206,22 @@ jobs: rust_channel: stable host_os: ubuntu-latest + # check ring alone + - features: --no-default-features --features alloc,std,ring + mode: # debug + rust_channel: stable + host_os: macos-latest + + - features: --no-default-features --features alloc,std,ring + mode: # debug + rust_channel: stable + host_os: windows-latest + + - features: --no-default-features --features alloc,std,ring + mode: # debug + rust_channel: stable + host_os: ubuntu-latest + steps: - name: Checkout sources uses: actions/checkout@v4 @@ -220,9 +238,10 @@ jobs: uses: seanmiddleditch/gha-setup-ninja@v5 - name: cargo test (${{ matrix.mode }}, ${{ matrix.features }}) - run: cargo test --locked -vv ${{ matrix.features }} ${{ matrix.mode }} -- --ignored + run: cargo test --locked ${{ matrix.features }} ${{ matrix.mode }} -- --ignored env: RUSTFLAGS: "-D warnings" + AWS_LC_SYS_PREBUILT_NASM: "1" # for benefit of rcgen msrv: name: MSRV diff --git a/Cargo.toml b/Cargo.toml index 783820f3..d1b4c420 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,7 +73,7 @@ allowed_external_types = [ name = "webpki" [features] -default = ["std", "ring"] +default = ["std"] alloc = ["ring?/alloc", "pki-types/alloc"] aws-lc-rs = ["dep:aws-lc-rs", "aws-lc-rs/aws-lc-sys", "aws-lc-rs/prebuilt-nasm"] aws-lc-rs-fips = ["dep:aws-lc-rs", "aws-lc-rs/fips"]