crosvm/tools
Dennis Kempin 7f03a70790 Parallelize tools/fmt
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>
2022-03-07 22:50:12 +00:00
..
chromeos tools/chromeos/create_merge: Automatically resolve conflicts 2022-02-28 21:30:13 +00:00
contrib enumn: switch to upstream crates.io version 2021-11-15 21:03:25 +00:00
examples Reorganize usage doc and add example usage 2022-01-27 21:29:10 +00:00
impl Parallelize tools/fmt 2022-03-07 22:50:12 +00:00
windows Upstream windows build/test script 2022-01-28 00:55:08 +00:00
aarch64vm testvm: Use prebuilts instead of building on-the-fly 2021-10-15 22:02:24 +00:00
bindgen-all-the-things kernel_loader: regenerate ELF bindings 2022-03-07 21:52:26 +00:00
cargo-doc tools: Stop generating API docs for libvda 2021-12-09 18:01:34 +00:00
clippy Pythonify clippy/fmt scripts and add common.py 2022-02-15 22:01:58 +00:00
dev_container Prevent dev_container arguments from being split 2022-03-01 22:28:41 +00:00
fmt Parallelize tools/fmt 2022-03-07 22:50:12 +00:00
install-aarch64-deps Uprev rust toolchain to 1.56.1 2021-12-10 02:34:50 +00:00
install-armhf-deps Uprev rust toolchain to 1.56.1 2021-12-10 02:34:50 +00:00
install-deps Pythonify clippy/fmt scripts and add common.py 2022-02-15 22:01:58 +00:00
presubmit Update ./tools/presubmit defaults and add --all mode 2022-02-10 22:04:18 +00:00
run_tests Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00
set_test_target Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00
x86vm testvm: Use prebuilts instead of building on-the-fly 2021-10-15 22:02:24 +00:00