image: "rust:latest"

stages:
  - lint

before_script:
  - rustup target add thumbv7em-none-eabihf
  - rustup component add rustfmt
  - rustup component add clippy

lint:
  stage: lint
  script:
    - cargo fmt -- --check
    - cargo clippy --all-features -- -D warnings
