Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/scripts/format-all.sh
1685 views
1
#!/bin/bash
2
set -euo pipefail
3
4
# Format all sources using rustfmt.
5
6
topdir=$(dirname "$0")/..
7
cd "$topdir"
8
9
# Make sure we can find rustfmt.
10
export PATH="$PATH:$HOME/.cargo/bin"
11
12
exec cargo +stable fmt --all -- "$@"
13
14