#!/usr/bin/env bash
set -e

echo "==> cargo fmt --check"
cargo fmt --check

echo "==> cargo clippy"
cargo clippy -- -D warnings

echo "==> cargo test"
cargo test

echo "==> cargo doc"
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps

echo "All checks passed."
