#!/usr/bin/env bash # Runs clippy normally and with `madsim` cfg flag. set -exuo pipefail cd $(dirname "$0")/.. cargo component check --workspace # regenerate bindings cargo clippy --workspace --all-targets --fix --allow-dirty --allow-staged -- -D warnings RUSTFLAGS="--cfg madsim" cargo clippy --workspace --target-dir=target/debug/madsim --fix --allow-dirty --allow-staged --all-targets -- -D warnings cargo fmt git status -s