Files
wasmtime/format-all.sh
Jakub Konka 19a4f00752 Set up CI, add format and test scripts.
Remove unused Cargo dependencies.
2019-05-08 07:39:54 +02:00

14 lines
279 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
# This script borrows heavily from CraneStation/wasmtime project.
topdir=$(dirname "$0")
cd "$topdir"
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo +stable fmt --all -- "$@"