diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index c301397593..cbe321c5f9 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -1,9 +1,11 @@ [Builtin Hooks] bpfmt = true clang_format = true +rustfmt = true [Builtin Hooks Options] clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp +rustfmt = --config-path=rustfmt.toml [Hook Scripts] checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} diff --git a/rustfmt.toml b/rustfmt.toml new file mode 120000 index 0000000000..475ba8fde7 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +../../../build/soong/scripts/rustfmt.toml \ No newline at end of file