summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
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 24382a04b..132b1fdb3 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -148,6 +148,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()