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