diff options
author | David Drysdale <drysdale@google.com> | 2023-12-02 18:46:32 +0000 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2023-12-03 08:30:03 +0000 |
commit | b6fc6ffa09bada5e5f210d2b54055f9b0c65a73a (patch) | |
tree | 8a0902aa36cce3b137f4569729c0397d0a76b79d | |
parent | 874fbdbc8b1aaff9cf4ac6571554c8f827d38075 (diff) | |
download | spki-b6fc6ffa09bada5e5f210d2b54055f9b0c65a73a.tar.gz |
Shift host-only to visibility restriction
Bug: 314513765
Test: cargo_embargo generate, build
Change-Id: Ia92c6d0c380809d95070c65e7707993cb530cb68
-rw-r--r-- | Android.bp | 17 | ||||
-rw-r--r-- | cargo_embargo.json | 2 |
2 files changed, 17 insertions, 2 deletions
@@ -31,8 +31,9 @@ license { ], } -rust_library_host { +rust_library { name: "libspki", + host_supported: true, crate_name: "spki", cargo_env_compat: true, cargo_pkg_version: "0.6.0", @@ -40,6 +41,20 @@ rust_library_host { edition: "2021", features: ["alloc"], rustlibs: ["libder"], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], + product_available: true, + vendor_available: true, + visibility: [ + "//external/rust/crates/pkcs1:__subpackages__", + "//external/rust/crates/pkcs8:__subpackages__", + "//external/rust/crates/x509-cert:__subpackages__", + "//packages/modules/Virtualization:__subpackages__", + "//system/keymint:__subpackages__", + ], + } rust_library_rlib { diff --git a/cargo_embargo.json b/cargo_embargo.json index 4b2876a..8987119 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -11,7 +11,7 @@ { "package": { "spki": { - "device_supported": false + "add_module_block": "cargo2android_viz.bp" } } }, |