rust: Visibility exports for bindgen
We are now default restricting bindgen visibility to subpackages. This change is part of a set of changes adding explicit visibility for bindgen libraries which are already being used elsewhere. * If these visibility rules are to allow access by the safe bindings library which lives elsewhere in the codebase, no action is needed. * If safe bindings do not exist, and you own this library, now is a good time to think about producing them and transitioning your (now enumerated) client list. * If safe bindings exist, but there is a surprise client of the raw bindings on this list, now is a good time to talk to them about why they don't want to use your safe bindings. Bug: 166332519 Test: m Change-Id: I1320a72d61cf0d760da3e037dec6ad35c8c979f8
This commit is contained in:
parent
ef46fe4e2b
commit
132a2b26b9
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,10 @@ rust_bindgen {
|
|||
name: "libstatspull_bindgen",
|
||||
wrapper_src: "statslog.h",
|
||||
crate_name: "statspull_bindgen",
|
||||
visibility: [
|
||||
"//frameworks/proto_logging/stats/stats_log_api_gen",
|
||||
"//packages/modules/Virtualization/libs/statslog_virtualization",
|
||||
],
|
||||
source_stem: "bindings",
|
||||
bindgen_flags: [
|
||||
"--size_t-is-usize",
|
||||
|
@ -48,7 +52,7 @@ rust_bindgen {
|
|||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"com.android.virt",
|
||||
]
|
||||
],
|
||||
}
|
||||
|
||||
rust_library {
|
||||
|
|
Loading…
Reference in a new issue