dfu-rs 0.2.1

Device Firmware Update crate for hosts, using nusb and exposing a simple async API.
Documentation
name: Rust

on:
  workflow_dispatch:
  push:
    paths-ignore:
      - 'README.md'
      - 'LICENSE*'
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  check:

    # The control transfer paths are cfg'd per OS, so each host compiles a
    # different half of the crate.  All three are needed to cover it.
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]

    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v4
    - name: Install rustfmt and clippy
      run: rustup component add rustfmt clippy
    - name: Lint
      run: ci/lint.sh
      shell: bash
    - name: Build crate
      run: cargo build --verbose
    - name: Run tests
      run: cargo test --verbose
    - name: Build docs
      run: cargo doc --verbose