From 2f8a217f5d16951911ccaee4d7180cbd3210243b Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 13 Jan 2023 23:30:50 +0000 Subject: [PATCH] Check for unknown features --- .github/workflows/features.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/features.yml diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml new file mode 100644 index 0000000..7fadff2 --- /dev/null +++ b/.github/workflows/features.yml @@ -0,0 +1,26 @@ +name: Check for unknown features +on: + push: + branches: ["main"] + pull_request: +jobs: + unknown-features: + name: Check for unknown features + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Fetch toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - name: Check for unknown features + env: + RUSTFLAGS: "-D unexpected-cfgs" + uses: actions-rs/cargo@v1 + with: + command: check + args: -Z unstable-options -Z check-cfg=features --tests + toolchain: nightly