From acd1ef731ac49c9016cd99b09ee87207130172af Mon Sep 17 00:00:00 2001 From: David LeGare Date: Mon, 4 Apr 2022 20:52:00 +0000 Subject: [PATCH] Configure rustfmt for preupload hook Test: N/A Change-Id: I8f7cecfa00777983540b8fd74da9bab1753bfc01 --- PREUPLOAD.cfg | 2 ++ rustfmt.toml | 1 + 2 files changed, 3 insertions(+) create mode 120000 rustfmt.toml diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index dcf92be1e..9b96f3691 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -1,8 +1,10 @@ [Builtin Hooks] clang_format = true +rustfmt = true [Builtin Hooks Options] clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp +rustfmt = --config-path=rustfmt.toml [Hook Scripts] aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "." diff --git a/rustfmt.toml b/rustfmt.toml new file mode 120000 index 000000000..ee92d9efc --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +../../build/soong/scripts/rustfmt.toml \ No newline at end of file