summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2020-09-25 13:14:01 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-09-25 13:14:01 +0000
commit4820c2c8d26d96468f339bdb3bf7753ed70a3dc3 (patch)
tree261b4496b893b611e346b108b687370876f49a25 /rust/bindgen.go
parentce2cffd5836f605337babc17858648c0887acf8d (diff)
parent295c72bebcbe2c7463841435fcd5b230ec9caf60 (diff)
Merge "Avoid Rust source provider rule duplication"
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r--rust/bindgen.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 0d89b241e..d8d126d37 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -240,7 +240,9 @@ func (b *bindgenDecorator) SourceProviderProps() []interface{} {
// rust_bindgen generates Rust FFI bindings to C libraries using bindgen given a wrapper header as the primary input.
// Bindgen has a number of flags to control the generated source, and additional flags can be passed to clang to ensure
-// the header and generated source is appropriately handled.
+// the header and generated source is appropriately handled. It is recommended to add it as a dependency in the
+// rlibs, dylibs or rustlibs property. It may also be added in the srcs property for external crates, using the ":"
+// prefix.
func RustBindgenFactory() android.Module {
module, _ := NewRustBindgen(android.HostAndDeviceSupported)
return module.Init()