From 4f25739735ed68e80473246b7ddee6fac2769746 Mon Sep 17 00:00:00 2001 From: Daniel Chambers Date: Tue, 3 Sep 2024 11:43:29 +1000 Subject: [PATCH] Test to ensure openssl is not a dep of ndc-sdk-core --- .github/workflows/test.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1fcab18..b34f683 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,3 +24,13 @@ jobs: - name: run tests run: cargo test --release --all-targets --all-features + + - name: check openssl is not a dependency of ndc-sdk-core + run: | + output=$(cargo tree -i openssl --no-dedupe --no-default-features -e no-dev) + echo "$output" + if echo "$output" | grep -q ndc-sdk-core; then + echo "openssl was found as a dependency of ndc-sdk-core" + echo "This should be fixed. openssl dependencies make it hard to make binaries with minimal dynamically linked dependencies such as connector CLI plugins" + exit 1 + fi