Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(IGNORE) Add CI check for unknown features in cfg attributes and macros #170

Merged
merged 3 commits into from
Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,23 @@ jobs:
version: latest
args: --all-targets --all-features

unknown-features-cfg:
name: Check for unknown features in cfg attributes and macros
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Check for unknown features
env:
RUSTFLAGS: "-D unexpected-cfgs"
run: cargo +nightly check -Z unstable-options -Z check-cfg=features --tests

version_bump:
name: Ensure (MAJOR) tag is used when making an API breaking change
runs-on: ubuntu-latest
Expand Down