platform_build_soong/rust
Matthew Maurer bb3add1104 rust: Suppress default sysroot unconditionally
With proper prebuilt modules, we can avoid any rustc implicit sysroot
searching.

Asd a bonus, this should make rust-project.json generation correctly
grab otherwise implicit dependencies.

Prebuilt rlibs may include several dependency rlibs. Without a
link_dirs attribute, every dependency (even if unexported) would need a
separate module.

Previously we were casing out on exact structs, which might be OK when
libraryDecorator and procMacroDecorator were the only possibilities, but
repeating the logic for three types is too much. Using an interface
makes this logic scale better.

Bug: 159591910
Test: cd external/rust; mma; m crosvm.experimental
Change-Id: Ia1124e09f48cd05e39f094bbcb988622ebd2272f
2020-07-01 11:27:12 -07:00
..
config rust: Change default variants 2020-07-01 11:27:12 -07:00
Android.bp Add clippy-driver build rule 2020-06-26 13:31:21 +02:00
OWNERS Add Matt to OWNERS for Rust 2020-06-26 09:23:47 +02:00
androidmk.go Support multiple dists per Android.bp module, and dist output selection. 2020-06-25 12:42:07 +00:00
binary.go rust: Add rustlibs auto dependency selection 2020-07-01 11:27:12 -07:00
binary_test.go Add rust_test and rust_test_host. 2019-10-29 17:19:03 -07:00
builder.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
clippy.go Add clippy-driver build rule 2020-06-26 13:31:21 +02:00
clippy_test.go rust: Change default variants 2020-07-01 11:27:12 -07:00
compiler.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
compiler_test.go Test for rust install path regressions. 2020-04-29 15:31:42 -04:00
coverage.go Remove moduleContextImpl struct 2020-06-24 11:56:33 +02:00
coverage_test.go rust: Change default variants 2020-07-01 11:27:12 -07:00
library.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
library_test.go rust: Add rustlibs auto dependency selection 2020-07-01 11:27:12 -07:00
prebuilt.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
proc_macro.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
project_json.go [Rust] Remove unused variables and deduplicate. 2020-06-16 10:28:25 -04:00
project_json_test.go Add rust-project.json generator 2020-06-11 11:22:31 +02:00
rust.go rust: Suppress default sysroot unconditionally 2020-07-01 11:27:12 -07:00
rust_test.go rust: Change default variants 2020-07-01 11:27:12 -07:00
test.go rust: Add rustlibs auto dependency selection 2020-07-01 11:27:12 -07:00
test_test.go Make rust_test file output more similar to cc_test. 2020-06-11 17:12:19 -04:00
testing.go rust: Mutate prebuilt modules dylib/rlib 2020-07-01 11:27:12 -07:00