diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aef08c6..ed96e88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: push: branches: [ main ] +env: + RUSTFLAGS: -Dwarnings + jobs: check: name: Check @@ -17,7 +20,7 @@ jobs: - 1.60.0 steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@master @@ -32,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@stable @@ -45,7 +48,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@stable @@ -61,7 +64,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@nightly @@ -78,7 +81,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@stable @@ -89,17 +92,19 @@ jobs: run: cargo fmt --all -- --check - name: Run cargo clippy - run: cargo clippy -- -D warnings + run: cargo clippy docs: name: Docs runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@stable - name: Run cargo doc run: cargo doc --no-deps --document-private-items + env: + RUSTDOCFLAGS: -Dwarnings diff --git a/Cargo.toml b/Cargo.toml index e30781a..876292c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,6 @@ path = "tests/tests.rs" [target.'cfg(st3_loom)'.dependencies] loom = "0.5" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(st3_loom)'] }