From 68c7d05e28e1d8161495afd3cc9811d13f5b9644 Mon Sep 17 00:00:00 2001 From: BiagioFesta <15035284+BiagioFesta@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:33:12 +0100 Subject: [PATCH] Cargo.toml: add aws-lc-rs feature as crypto backend --- .github/workflows/build.yml | 8 ++++++++ Cargo.toml | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f93999..27ae1e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,14 @@ jobs: with: toolchain: ${{ matrix.rust }} + - name: Install NASM for aws-lc-rs on Windows + if: runner.os == 'Windows' + uses: ilammy/setup-nasm@v1 + + - name: Install ninja-build tool for aws-lc-fips-sys on Windows + if: runner.os == 'Windows' + uses: seanmiddleditch/gha-setup-ninja@v4 + - name: cargo check (default features) run: cargo check --all-targets diff --git a/Cargo.toml b/Cargo.toml index 0bd3cf5..f7e52a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,7 @@ tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thre [features] default = ["native-tokio", "http1", "tls12", "logging", "ring"] +aws-lc-rs = ["rustls/aws_lc_rs"] http1 = ["hyper-util/http1"] http2 = ["hyper-util/http2"] webpki-tokio = ["webpki-roots"]