Reduces visibility of rust-openssl to only its direct dependents
This CL restricts the visibility of rust-openssl, so that it is
only available to the packages that currently depend on it.
This is so that no new dependencies on rust-openssl can be introduced.
This is part of an effort to remove all dependencies on rust-openssl,
and migrate the existing ones to use bssl-crypto instead. Once a package's
dependence on rust-openssl has been migrated, it will be removed from
the list of packages to which rust-openssl must be visible.
Test: build
Change-Id: Ifc526f0bed5ffc54a7c59e9962f0204420e11366
diff --git a/Android.bp b/Android.bp
index c52b2a2..85184c6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -49,6 +49,27 @@
rust_library {
name: "libopenssl",
+ visibility: [
+ ":__subpackages__",
+ "//packages/modules/Virtualization/libs/apkverify",
+ "//packages/modules/Virtualization/authfs",
+ "//packages/modules/Virtualization/service_vm/client_vm_csr",
+ "//packages/modules/Virtualization/virtualizationservice",
+ "//system/security/keystore2/tests",
+ "//system/authgraph/boringssl",
+ "//packages/modules/Virtualization/libs/dice/driver",
+ "//packages/modules/Virtualization/authfs/src/fsverity/metadata",
+ "//tools/security/remote_provisioning/hwtrust",
+ "//packages/modules/Virtualization/pvmfw/avb",
+ "//packages/modules/Virtualization/microdroid_manager",
+ "//system/keymint/boringssl",
+ "//tools/netsim",
+ "//packages/modules/Virtualization/vm_payload",
+ "//system/software_defined_vehicle/core_services/service_discovery/sdv_sd_agent",
+ "//system/software_defined_vehicle/core_services/vsidl/middleware/rpc/transport/grpc",
+ "//system/software_defined_vehicle/core_services/service_authn",
+ "//vendor:__subpackages__",
+ ],
host_supported: true,
crate_name: "openssl",
cargo_env_compat: true,