platform_build_soong/rust
Ivan Lozano ec6e9910e6 rust: Depend on CC a shared library's TOC, not .so
CC libraries generate TOC files which contain the list of exported
symbols. By depending on the TOC file instead of the .so, changes to
shared library dependencies will not result in rebuilding Rust
dependencies as long as the exported symbols remain unchanged. This
should improve incremental build times during development.

This also includes a minor fix where exported linkObjects should be
deduplicated to avoid the same object being included many times.

Bug: 173619911
Test: m libkeystore2; modify a bionic file; m libkeystore2
      doesn't rebuild the rust target.
Change-Id: I6383217c125bf8dd7125a5e013a78754cac4edf2
2021-01-22 11:41:33 -05:00
..
config Merge "Use 1.49.0 prebuilts" 2021-01-14 18:26:41 +00:00
Android.bp Rust: Vendor support for Rust static libraries. 2020-12-10 10:29:54 -05:00
OWNERS Add Matt to OWNERS for Rust 2020-06-26 09:23:47 +02:00
androidmk.go Rust: Vendor support for Rust static libraries. 2020-12-10 10:29:54 -05:00
binary.go Refactor CC to prep for Rust sanitizable modules. 2021-01-08 08:53:46 -05:00
binary_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
bindgen.go Allow the clang version used for bindgen to be configured. 2020-12-30 21:18:54 -08:00
bindgen_test.go rust: Add header library support to rust_bindgen. 2020-11-17 13:40:50 -05:00
builder.go rust: Depend on CC a shared library's TOC, not .so 2021-01-22 11:41:33 -05:00
builder_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
clippy.go rust: modify linting properties 2020-08-13 15:58:09 +02:00
clippy_test.go rust modules can be included in apex 2020-11-30 15:40:48 +00:00
compiler.go Refactor CC to prep for Rust sanitizable modules. 2021-01-08 08:53:46 -05:00
compiler_test.go rust modules can be included in apex 2020-11-30 15:40:48 +00:00
coverage.go Migrate away from removed option 2020-08-25 15:27:15 -07:00
coverage_test.go rust: Fix incorrect expected gcno file for dylibs 2020-11-17 08:08:21 -05:00
image.go Do not read 'vendor_available: false' 2021-01-07 17:58:55 +09:00
image_test.go Rust: Vendor support for Rust static libraries. 2020-12-10 10:29:54 -05:00
library.go Merge "Rust: WriteFileRule instead of printf for protos" 2020-12-11 19:14:29 +00:00
library_test.go Move prefer_rlib from binary to base compiler. 2020-12-09 09:55:12 -05:00
prebuilt.go Start using Providers instead of direct module access 2020-10-12 16:55:47 -07:00
proc_macro.go rust: strip libraries and binaries 2020-08-28 10:50:17 +02:00
project_json.go Add dependencies for source-generated crates 2020-12-07 14:45:09 +01:00
project_json_test.go Add dependencies for source-generated crates 2020-12-07 14:45:09 +01:00
protobuf.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00
protobuf_test.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00
rust.go rust: Depend on CC a shared library's TOC, not .so 2021-01-22 11:41:33 -05:00
rust_test.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00
source_provider.go rust: Add support for multiple protos per module. 2020-11-30 14:55:00 +00:00
source_provider_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
strip.go Add comments to {cc,rust}/strip.go 2020-11-19 20:02:34 +01:00
test.go Add unit_test test option in test configs 2020-11-16 11:05:00 -08:00
test_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
testing.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00