#!/usr/bin/env bash
set -euo pipefail
exec > >(tee log/check.log) 2>&1 

echo "> check"

echo "> check > cargo check"
RUSTFLAGS='-D warnings' cargo check --all-targets --all-features

echo "> check > cargo clippy"
cargo clippy --all-targets --all-features -- -D warnings
