#!/usr/bin/env bash
set -euo pipefail

# No `--workspace`: lint `[workspace.default-members]` (which defaults
# to ALL members when not set in Cargo.toml). Lets consumers with
# target-specific crates that can't host-compile (e.g. lex-fmt/lex's
# `lex-wasm`) exclude them via default-members. See release#128.
echo "Running clippy..."
cargo clippy --all-targets --all-features -- -D warnings
echo "Clippy OK"
