ic-md 0.2.0

Driver for the iC-Haus iC-MD 48-Bit quadrature counter with SPI interface.
Documentation
on:
  push:
    branches: [staging, trying, main]
  pull_request:

name: Checks

env:
  RUSTFLAGS: "--deny warnings"

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        FEATURES:
          [
            "",
            "--no-default-features",
            "--no-default-features --features async",
            "--all-features",
          ]
    steps:
      - uses: actions/checkout@v7
      - uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: stable
      - name: Build
        run: cargo build ${{ matrix.FEATURES }}
      - name: Test std
        run: cargo test  ${{ matrix.FEATURES }}

  fmt:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: stable
          components: rustfmt
      - name: Format
        run: cargo fmt --all -- --check

  clippy:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        FEATURES: ["", "--all-features"]
    steps:
      - uses: actions/checkout@v7
      - uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: stable
          components: clippy
      - name: Clippy
        run: cargo clippy ${{ matrix.FEATURES }} -- -D warnings