ctaphid 0.3.1

Rust implementation of the CTAPHID protocol
Documentation
# Copyright (C) 2021 Robin Krahl <robin.krahl@ireas.org>
# SPDX-License-Identifier: CC0-1.0

image: archlinux
packages:
  - gnupg
  - hidapi
  - reuse
  - rustup
sources:
  - https://git.sr.ht/~ireas/ctaphid-rs
tasks:
  - setup: |
      rustup set profile minimal
      rustup default stable
      rustup component add rustfmt
      rustup component add clippy
  - version: |
      rustc -V
  - verify: |
      cd ctaphid-rs
      curl -s "https://pgp.ireas.org/0x6D533958F070C57C.txt" | gpg --import
      [ "$BUILD_SUBMITTER" == "git.sr.ht" ] && git verify-commit HEAD
  - reuse: |
      cd ctaphid-rs
      reuse lint
  - build: |
      cd ctaphid-rs
      cd ctaphid-types
      cargo build --release --no-default-features
      cargo build --release
      cd ..
      cargo build --release --no-default-features
      cargo build --release
  - test: |
      cd ctaphid-rs
      cargo test --workspace
  - clippy: |
      cd ctaphid-rs
      cargo clippy -- -D warnings
  - format: |
      cd ctaphid-rs
      cargo fmt -- --check
triggers:
  - action: email
    condition: failure
    to: robin.krahl@ireas.org