Add rustfmt to p/m/C

Test: try to upload .rs
Change-Id: I8ccea161da10db8505e1f0aa5fb22f6c6952373e
This commit is contained in:
Patrick Rohr 2025-03-28 10:04:34 -07:00
commit 2f870dbc33
2 changed files with 3 additions and 0 deletions

View file

@ -1,9 +1,11 @@
[Builtin Hooks] [Builtin Hooks]
bpfmt = true bpfmt = true
clang_format = true clang_format = true
rustfmt = true
[Builtin Hooks Options] [Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
rustfmt = --config-path=rustfmt.toml
[Hook Scripts] [Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}

1
rustfmt.toml Symbolic link
View file

@ -0,0 +1 @@
../../../build/soong/scripts/rustfmt.toml