diff options
-rw-r--r-- | Android.bp | 25 | ||||
-rw-r--r-- | cargo_embargo.json | 2 |
2 files changed, 22 insertions, 5 deletions
@@ -1,5 +1,7 @@ // This file is generated by cargo_embargo. -// Do not modify this file as changes will be overridden on upgrade. +// Do not modify this file after the first "rust_*" or "genrule" module +// because the changes will be overridden on upgrade. +// Content before the first "rust_*" or "genrule" module is preserved. package { default_applicable_licenses: ["external_rust_crates_spki_license"], @@ -31,15 +33,30 @@ license { ], } -rust_library_host { +rust_library { name: "libspki", + host_supported: true, crate_name: "spki", cargo_env_compat: true, cargo_pkg_version: "0.7.3", - srcs: ["src/lib.rs"], + crate_root: "src/lib.rs", 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 { @@ -47,7 +64,7 @@ rust_library_rlib { crate_name: "spki", cargo_env_compat: true, cargo_pkg_version: "0.7.3", - srcs: ["src/lib.rs"], + crate_root: "src/lib.rs", edition: "2021", features: ["alloc"], rustlibs: ["libder_nostd"], 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" } } }, |