mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
7f03a70790
cargo fmt will only format those files that are referenced by crosvm. To really catch all files in our source tree, we need to run rustfmt directly. This will check files multiple times, since rustfmt will follow included modules. But is still faster that cargo fmt. To run these in parallel, this change adds some tools to common.py for parallel execution of commands. This reduces the fmt check time from ~9s to 1.5s. I verified that we are actually catching all files now by adding a newline to all .rs files in our sources tree. The formatter reverted them all. BUG=b:218559722 TEST=./tools/fmt Change-Id: If721d837ebc9eee3ce28fa7f439ab0bcc0b993cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3474926 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> |
||
---|---|---|
.. | ||
chromeos | ||
contrib | ||
examples | ||
impl | ||
windows | ||
aarch64vm | ||
bindgen-all-the-things | ||
cargo-doc | ||
clippy | ||
dev_container | ||
fmt | ||
install-aarch64-deps | ||
install-armhf-deps | ||
install-deps | ||
presubmit | ||
run_tests | ||
set_test_target | ||
x86vm |