summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-07-22 09:14:47 -0400
committer Ivan Lozano <ivanlozano@google.com> 2020-07-22 09:18:13 -0400
commit10735d90d62c38e9a14e38efc6125401ce325a25 (patch)
tree245e576ea8712d2f3e039094e497e4647ce40a5c /rust/bindgen.go
parent8481186d56e040fffc8f01d0a392704310295435 (diff)
Add source collision test, rust_bindgen doc.
Bug: 159064919 Test: Soong tests pass (and fail if error is modified). Change-Id: Id4f76e53e11e46ae495f9613a2699c598e7daea4
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r--rust/bindgen.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 859223abf..0f657ef5a 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -147,6 +147,9 @@ func (b *bindgenDecorator) sourceProviderProps() []interface{} {
&b.Properties)
}
+// 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.
func RustBindgenFactory() android.Module {
module, _ := NewRustBindgen(android.HostAndDeviceSupported)
return module.Init()