diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eedf0aa..64da95c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,3 +183,23 @@ jobs: - name: Check that C header is up-to-date run: git diff --exit-code || (echo "!!!! CHECKED IN C HEADER IS OUTDATED !!!!" && false) + + clippy: + name: Lint with clippy + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install \ + build-essential \ + libelf-dev \ + zlib1g-dev + + - uses: dtolnay/rust-toolchain@stable + - run: cargo clippy --workspace --no-deps -- -A unknown_lints -D clippy::todo diff --git a/src/lib.rs b/src/lib.rs index 45934f3..8e2df69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,7 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] +#[allow(clippy::all)] mod bindings { #[cfg(all(feature = "bindgen", not(feature = "bindgen-source")))] include!(concat!(env!("OUT_DIR"), "/bindings.rs"));