crosvm/common
Dennis Kempin 278e5ffeba test_runner: Add separate cargo target dir for each platform
Using the same CARGO_TARGET_DIR for all builds prevents us from
building for platforms in parallel, since cargo will lock the
directory to only run one build at a time.

Use the same directory for clippy as well, and ensure that
clippy won't invalidate caches created by run_tests.

This reduces the build time for tools/presubmit by about 50%.

Another advantage is that rust_analyzer and run_tests will no longer
block each other or invalidate the cache when run with different
feature flags.

Note: This introduces two subtle changes to the build that required nit
fixes:
- build.rs files are now run through clippy as well
- common/* crates are now also built for the target architecture instead
  the host.

BUG=None
TEST=tools/presubmit

Change-Id: I8da9ef53418c0b15827d512a04e77828621aef88
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3984416
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2022-10-31 21:33:33 +00:00
..
assertions Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
audio_streams health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
balloon_control Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
cros-fuzz crosvm-fuzz: Migrate crosvm-fuzz to cargo fuzz 2022-10-03 16:12:15 +00:00
cros_asyncv2 test_runner: Add separate cargo target dir for each platform 2022-10-31 21:33:33 +00:00
data_model Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
p9 p9: set filetype from directory to file in lcreate 2022-10-26 23:23:53 +00:00
sync Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
chromeos_warning.md Add version pin warning to common/ 2022-04-15 19:51:35 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +00:00

Crosvm General Purpose Libraries

The crates in this folder are general purpose libraries used by other projects in ChromeOS as well.

To make them accessible independendly of crosvm, each of these crates is excluded from the crosvm workspace.

List of libraries

  • cros-fuzz: Support crate for fuzzing rust code in ChromeOS
  • p9: Server implementation of the 9p file system protocol