xref: /wasmtime-44.0.1/scripts/format-all.sh (revision 7ac115d6)
1fff777d4SDan Gohman#!/bin/bash
2fff777d4SDan Gohmanset -euo pipefail
3fff777d4SDan Gohman
4fff777d4SDan Gohman# Format all sources using rustfmt.
5fff777d4SDan Gohman
6*7ac115d6SDan Gohmantopdir=$(dirname "$0")/..
7fff777d4SDan Gohmancd "$topdir"
8fff777d4SDan Gohman
9fff777d4SDan Gohman# Make sure we can find rustfmt.
10fff777d4SDan Gohmanexport PATH="$PATH:$HOME/.cargo/bin"
11fff777d4SDan Gohman
12fff777d4SDan Gohmanexec cargo +stable fmt --all -- "$@"
13