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 committed Nov 14, 2023
1 parent f41ccd3 commit e2f7220
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2f7220

Please sign in to comment.