summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2020-07-08 08:39:44 -0400
committerIvan Lozano <ivanlozano@google.com>2020-07-20 13:40:14 -0400
commit4fef93c53fd98d6bf87fceccc4d37fa2392b958b (patch)
tree7c1bd299af56b56a142c8ba48fdaa13578220047 /rust/testing.go
parent20efa41af8ec6073d1ee3ecb4b92361f87c526d5 (diff)
Add SourceProviders and a rust_bindgen module type
Add SourceProvider modules which provides a base interface for more complex code generation usecases such as bindgen. Also adds the rust_bindgen module type which calls bindgen to generate Rust FFI bindings to C. Bug: 159064919 Test: Local test module generates bindings. Test: New Soong tests pass. Change-Id: Ie31467bbbe423497666ad837cf5fe1acd1e76bd8
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index 430b40bfd..f2d4c5eba 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -81,6 +81,7 @@ func CreateTestContext() *android.TestContext {
ctx.RegisterModuleType("genrule", genrule.GenRuleFactory)
ctx.RegisterModuleType("rust_binary", RustBinaryFactory)
ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory)
+ ctx.RegisterModuleType("rust_bindgen", RustBindgenFactory)
ctx.RegisterModuleType("rust_test", RustTestFactory)
ctx.RegisterModuleType("rust_test_host", RustTestHostFactory)
ctx.RegisterModuleType("rust_library", RustLibraryFactory)