Skip to content

Commit

Permalink
CI: check that deps are not using libstd API
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric authored and ctz committed Feb 27, 2024
1 parent 8805236 commit 2444558
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,19 @@ jobs:

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: x86_64-unknown-none

- name: cargo build (debug; default features)
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
Expand Down

0 comments on commit 2444558

Please sign in to comment.