Promote the src/tools crate to the top-level workspace.
The 'src' and 'tests' top-level directories now contain tools sources and integration tests for any of the library crates.
This commit is contained in:
14
format-all.sh
Executable file
14
format-all.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Format all sources using rustfmt.
|
||||
|
||||
# Exit immediately on errors.
|
||||
set -e
|
||||
|
||||
cd $(dirname "$0")
|
||||
src=$(pwd)
|
||||
|
||||
for crate in $(find "$src" -name Cargo.toml); do
|
||||
cd $(dirname "$crate")
|
||||
cargo fmt -- "$@"
|
||||
done
|
||||
Reference in New Issue
Block a user