platform_build_soong/rust
Ivan Lozano 21fa0a5844 rust: Add common interface for binaries
Structs embedding binaryDecorator (rust_test, rust_benchmark, rust_fuzz)
are binaries as well, but won't pass checks against *binaryDecorator,
such as the check in StaticExecutable().

Add a binaryInterface that can be checked instead to simplify these
checks and ensure we catch all binaries.

Bug: 170672854
Test: rust_test, rust_benchmark return true StaticallyLinked
Change-Id: I2373d3663373a6977260785602a02d39a41320fe
2021-11-01 14:57:44 -04:00
..
config Merge "Add path of uwb NativeManager to rust allowlist." 2021-10-27 21:03:22 +00:00
Android.bp Pass "--extern proc_macro" to rust_proc_macros. 2021-09-23 10:34:24 -07:00
androidmk.go Refactoring fuzz packaging code 2021-07-16 17:43:33 -07:00
benchmark.go rust: Remove libtest from stdlibs list 2021-07-15 15:45:31 -04:00
benchmark_test.go Add rust_benchmark module to soong. 2021-04-06 12:40:32 +02:00
binary.go rust: Add common interface for binaries 2021-11-01 14:57:44 -04:00
binary_test.go rust: Add support for bootstrap linker. 2021-07-22 14:23:27 -04:00
bindgen.go Update clang version used for bindgen to r433403 2021-09-12 15:22:28 +08:00
bindgen_test.go rust: Add header library support to rust_bindgen. 2020-11-17 13:40:50 -05:00
builder.go [rust] Switch LTO flavor to "thin" 2021-10-25 22:44:55 +00: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 Convert remaining rust tests to use test fixtures 2021-03-30 22:45:21 +01:00
compiler.go Flag an error on empty rust module srcs 2021-10-14 15:25:07 +00:00
compiler_test.go Flag an error on empty rust module srcs 2021-10-14 15:25:07 +00:00
coverage.go [rust/coverage] Pass -z,nostart-stop-gc to the linker 2021-09-10 10:33:30 -07:00
coverage_test.go [rust] [coverage] Don't pass -C link-dead-code 2021-08-04 05:06:22 +00:00
doc.go rust: doc: Zip up docs when done 2021-08-20 13:08:16 -07:00
fuzz.go rust: Package shared libraries with fuzzer zips 2021-10-14 15:31:47 -04:00
fuzz_test.go rust: Switch rust_fuzz to HWASan 2021-04-13 15:58:44 -07:00
image.go rust: Hook up InstallIn functions + Product 2021-08-20 12:14:54 -07:00
image_test.go Add more Rust vendor image support. 2021-04-13 13:17:12 -04:00
library.go rust: Refactor cfg and feature flag calculation 2021-09-23 12:21:04 -04:00
library_test.go [rust] Add android_dylib cfg flag 2021-07-07 19:13:08 -07:00
OWNERS Add Matt to OWNERS for Rust 2020-06-26 09:23:47 +02:00
prebuilt.go Rustdoc support. 2021-04-16 13:38:01 -07:00
proc_macro.go Pass "--extern proc_macro" to rust_proc_macros. 2021-09-23 10:34:24 -07:00
proc_macro_test.go Pass "--extern proc_macro" to rust_proc_macros. 2021-09-23 10:34:24 -07:00
project_json.go Include proc macro crates in rust-project.json 2021-10-06 19:39:06 +00:00
project_json_test.go Include proc macro crates in rust-project.json 2021-10-06 19:39:06 +00:00
protobuf.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00
protobuf_test.go Support test fixtures in rust package 2021-03-23 18:47:15 +00:00
rust.go rust: Add common interface for binaries 2021-11-01 14:57:44 -04:00
rust_test.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
sanitize.go rust: Add common interface for binaries 2021-11-01 14:57:44 -04:00
snapshot_prebuilt.go Separate snapshot definition 2021-07-19 11:42:32 +09:00
snapshot_utils.go Include static lib information for the snapshot modules 2021-07-01 11:42:28 +00: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 rust: Add require_root and vendor install base 2021-09-21 11:01:11 -04:00
test_test.go rust: Allow rust_tests to include data files. 2021-01-29 14:31:32 -05:00
testing.go rust: Remove libtest from stdlibs list 2021-07-15 15:45:31 -04:00
vendor_snapshot_test.go rust: Remove libtest from stdlibs list 2021-07-15 15:45:31 -04:00