diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b23d41ed..33d1fa95 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,6 +13,17 @@ jobs: run: rustup component add clippy - name: Run clippy run: cargo clippy -- -D warnings + fmt: + name: rustfmt-check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Check format + run: cargo fmt --all --check no-std: name: no-std lint runs-on: ubuntu-latest