Revert^3 "rust: Only allow bindgen to produce `rlib`s."
9cc801ab7af27684c190645f6fd0f9db8f798e15
Change-Id: Ib59840b51b316c0ad03bc66565814dd96be0b072
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 0199d3a..72cc894 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -299,15 +299,7 @@
ClangProperties: cc.RustBindgenClangProperties{},
}
- module := NewSourceProviderModule(hod, bindgen, false, true)
-
- android.AddLoadHook(module, func(ctx android.LoadHookContext) {
- type stub_props struct {
- Visibility []string
- }
- props := &stub_props{[]string{":__subpackages__"}}
- ctx.PrependProperties(props)
- })
+ module := NewSourceProviderModule(hod, bindgen, false)
return module, bindgen
}