From e2f7220bccd6fb3576b903ad986493eac506b972 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 14 Nov 2023 17:47:26 +0100 Subject: [PATCH] CI: check that deps are not using libstd API --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ee68198f60..f5f736160f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,6 +90,12 @@ jobs: run: cargo build --locked working-directory: rustls + # this target does _not_ include the libstd crate in its sysroot + # it will catch unwanted usage of libstd in _dependencies_ + - name: cargo build (debug; default features; no-std) + run: cargo build --locked --no-default-features --target x86_64-unknown-none + working-directory: rustls + - name: cargo test (debug; default features) run: cargo test --locked working-directory: rustls