Enable rust formatting preupload hooks

The rustfmt configuration is linked to the default from
build/soong/scripts.

Bug: 157146658
Test: tried uploading badly and correctly formatted rust
Change-Id: Ie104cca1c9f309e4b46acdfabd8c2e17c35180ad
This commit is contained in:
Andrew Scull 2020-10-13 11:47:44 +01:00
parent c2c8fb9d6f
commit 3a5ad753d7
2 changed files with 6 additions and 0 deletions

5
PREUPLOAD.cfg Normal file
View File

@ -0,0 +1,5 @@
[Builtin Hooks]
rustfmt = true
[Builtin Hooks Options]
rustfmt = --config-path=rustfmt.toml

1
rustfmt.toml Symbolic link
View File

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