clawchain/alloy/scripts/check_no_std.sh

24 lines
456 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
target=riscv32imac-unknown-none-elf
crates=(
alloy-eips
alloy-genesis
alloy-serde
alloy-consensus
alloy-consensus-any
alloy-network-primitives
alloy-rpc-types-eth
alloy-rpc-types-debug
alloy-rpc-types-engine
)
cmd=(cargo +stable hack check --no-default-features --target "$target")
for crate in "${crates[@]}"; do
cmd+=(-p "$crate")
done
echo "Running: ${cmd[*]}"
"${cmd[@]}"