diff options
author | David Drysdale <drysdale@google.com> | 2023-12-02 18:46:04 +0000 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2023-12-03 08:22:49 +0000 |
commit | 6861e5cf344e3de3de45847a0950c09e880be8cc (patch) | |
tree | e96f5406cd2a44dd9bad6d1fe02d7b13adb00e53 | |
parent | c39e15544e23e21141c98bb6bb63e8926723d590 (diff) | |
download | x509-cert-6861e5cf344e3de3de45847a0950c09e880be8cc.tar.gz |
Shift host-only to visibility restriction
Bug: 314513765
Test: cargo_embargo generate, build
Change-Id: Ib8987dc0b4d55fa167412c1ecd9c06d6d3aca8ac
-rw-r--r-- | Android.bp | 14 | ||||
-rw-r--r-- | cargo_embargo.json | 2 |
2 files changed, 14 insertions, 2 deletions
@@ -31,8 +31,9 @@ license { ], } -rust_library_host { +rust_library { name: "libx509_cert", + host_supported: true, crate_name: "x509_cert", cargo_env_compat: true, cargo_pkg_version: "0.1.1", @@ -45,6 +46,17 @@ rust_library_host { "libflagset", "libspki", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], + product_available: true, + vendor_available: true, + visibility: [ + "//packages/modules/Virtualization:__subpackages__", + "//system/keymint:__subpackages__", + ], + } rust_library_rlib { diff --git a/cargo_embargo.json b/cargo_embargo.json index 9351aed..a036258 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -11,7 +11,7 @@ { "package": { "x509-cert": { - "device_supported": false + "add_module_block": "cargo2android_viz.bp" } } }, |