• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6// WARNING! This crate has a change in dependency structure that is not yet
7// reflected on crates.io. This means that the automated update tool will
8// not be able to handle the next update, and it will need to be performed
9// manually - openssl-error and openssl-macros will need to be imported,
10// and the applied patch will need to be rebased one directory down to apply
11// to only the openssl crate if it is not yet upstreamed at that point.
12//
13// Even if upstreamed, cargo2android.py will likely never run correctly on
14// this package without modification because boringssl does not intend to
15// publish "bssl-sys" on crates.io, since it needs to match the exact local
16// version of boringssl.
17
18package {
19    default_applicable_licenses: ["external_rust_crates_openssl_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35// See: http://go/android-license-faq
36license {
37    name: "external_rust_crates_openssl_license",
38    visibility: [":__subpackages__"],
39    license_kinds: [
40        "SPDX-license-identifier-Apache-2.0",
41        "SPDX-license-identifier-BSD",
42        "SPDX-license-identifier-MIT",
43        "SPDX-license-identifier-OpenSSL",
44    ],
45    license_text: [
46        "LICENSE",
47    ],
48}
49
50rust_library {
51    name: "libopenssl",
52    visibility: [
53        ":__subpackages__",
54        "//packages/modules/Virtualization/libs/apkverify",
55        "//packages/modules/Virtualization/authfs",
56        "//packages/modules/Virtualization/service_vm/client_vm_csr",
57        "//packages/modules/Virtualization/virtualizationservice",
58        "//system/security/keystore2/tests",
59        "//system/authgraph/boringssl",
60        "//packages/modules/Virtualization/libs/dice/driver",
61        "//packages/modules/Virtualization/authfs/src/fsverity/metadata",
62        "//tools/security/remote_provisioning/hwtrust",
63        "//packages/modules/Virtualization/pvmfw/avb",
64        "//packages/modules/Virtualization/microdroid_manager",
65        "//system/keymint/boringssl",
66        "//tools/netsim",
67        "//packages/modules/Virtualization/vm_payload",
68        "//system/software_defined_vehicle/core_services/service_discovery/sdv_sd_agent",
69        "//system/software_defined_vehicle/core_services/vsidl/middleware/rpc/transport/grpc",
70        "//system/software_defined_vehicle/core_services/service_authn",
71        "//vendor:__subpackages__",
72    ],
73    host_supported: true,
74    crate_name: "openssl",
75    cargo_env_compat: true,
76    cargo_pkg_version: "0.10.64",
77    crate_root: "src/lib.rs",
78    edition: "2018",
79    features: ["unstable_boringssl"],
80    cfgs: ["boringssl"],
81    rustlibs: [
82        "libbitflags",
83        "libbssl_sys",
84        "libcfg_if",
85        "libforeign_types",
86        "liblibc",
87        "libonce_cell",
88    ],
89    proc_macros: ["libopenssl_macros"],
90    aliases: ["openssl_sys:ffi"],
91    apex_available: [
92        "//apex_available:platform",
93        "com.android.virt",
94    ],
95    product_available: true,
96    vendor_available: true,
97}
98
99rust_library_host_rlib {
100    name: "libopenssl_static",
101    crate_name: "openssl",
102    cargo_env_compat: true,
103    cargo_pkg_version: "0.10.64",
104    crate_root: "src/lib.rs",
105    edition: "2018",
106    features: ["unstable_boringssl"],
107    cfgs: ["boringssl"],
108    rustlibs: [
109        "libbitflags",
110        "libcfg_if",
111        "libforeign_types",
112        "liblibc",
113        "libonce_cell",
114    ],
115    rlibs: [
116        "libbssl_sys_static",
117    ],
118    proc_macros: ["libopenssl_macros"],
119    aliases: ["openssl_sys:ffi"],
120}
121