Skip to content
Snippets Groups Projects
Forked from redox-os / relibc
2015 commits behind the upstream repository.
fmt.sh 184 B
#!/usr/bin/env bash
ARGS=()

for crate in relibc $(find src -name Cargo.toml | cut -d '/' -f2 | grep -v template)
do
    ARGS+=("--package" "$crate")
done

cargo fmt "${ARGS[@]}" "$@"