platform_build_soong/rust
Seth Moore 3afac0b36f Flag an error on empty rust module srcs
It's an error if a rust module's srcs is empty. Prior to this change
the output was a panic that complains loudly about a slice error and
nothing else. This change doesn't stop the panic, but at least adds
a bit of context so devs who make a simple mistake can more easily
fix it.

Test: SOONG_GEN_RUST_PROJECT=1 m nothing
Change-Id: Id7d8465d533413c3000699661222a53a7c8678f3
2021-10-14 15:25:07 +00:00
..
config Add NFC to the Rust allowlist 2021-09-17 12:08:44 -07: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 Remove IsDependencyRoot from interface 2021-07-07 16:29:09 -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: Add support to emit certain Cargo env vars. 2021-08-12 13:18:34 +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 Moving common fuzzing code to fuzz package 2021-08-11 23:54:15 +00: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 modules respects the installable property 2021-09-30 17:25:21 +09:00
rust_test.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
sanitize.go rust: Disable dead stripping for fuzzers. 2021-08-02 11:11:11 -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