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
6package {
7    default_applicable_licenses: ["external_rust_crates_webpki_license"],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23// See: http://go/android-license-faq
24license {
25    name: "external_rust_crates_webpki_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-BSD",
29        "SPDX-license-identifier-ISC",
30    ],
31    license_text: [
32        "LICENSE",
33    ],
34}
35
36rust_library {
37    name: "libwebpki",
38    host_supported: true,
39    crate_name: "webpki",
40    cargo_env_compat: true,
41    cargo_pkg_version: "0.22.4",
42    crate_root: "src/lib.rs",
43    edition: "2018",
44    features: [
45        "alloc",
46        "std",
47    ],
48    rustlibs: [
49        "libring",
50        "libuntrusted",
51    ],
52    apex_available: [
53        "//apex_available:platform",
54        "//apex_available:anyapex",
55    ],
56}
57
58rust_test {
59    name: "webpki_test_src_lib",
60    host_supported: true,
61    crate_name: "webpki",
62    cargo_env_compat: true,
63    cargo_pkg_version: "0.22.4",
64    crate_root: "src/lib.rs",
65    test_suites: ["general-tests"],
66    auto_gen_config: true,
67    test_options: {
68        unit_test: true,
69    },
70    edition: "2018",
71    features: [
72        "alloc",
73        "std",
74    ],
75    rustlibs: [
76        "libbase64_rust",
77        "libring",
78        "libserde",
79        "libserde_json",
80        "libuntrusted",
81    ],
82}
83
84rust_test {
85    name: "webpki_test_tests_dns_name_tests",
86    host_supported: true,
87    crate_name: "dns_name_tests",
88    cargo_env_compat: true,
89    cargo_pkg_version: "0.22.4",
90    crate_root: "tests/dns_name_tests.rs",
91    test_suites: ["general-tests"],
92    auto_gen_config: true,
93    test_options: {
94        unit_test: true,
95    },
96    edition: "2018",
97    features: [
98        "alloc",
99        "std",
100    ],
101    rustlibs: [
102        "libbase64_rust",
103        "libring",
104        "libserde",
105        "libserde_json",
106        "libuntrusted",
107        "libwebpki",
108    ],
109}
110
111rust_test {
112    name: "webpki_test_tests_integration",
113    host_supported: true,
114    crate_name: "integration",
115    cargo_env_compat: true,
116    cargo_pkg_version: "0.22.4",
117    crate_root: "tests/integration.rs",
118    test_suites: ["general-tests"],
119    auto_gen_config: true,
120    test_options: {
121        unit_test: true,
122    },
123    edition: "2018",
124    features: [
125        "alloc",
126        "std",
127    ],
128    rustlibs: [
129        "libbase64_rust",
130        "libring",
131        "libserde",
132        "libserde_json",
133        "libuntrusted",
134        "libwebpki",
135    ],
136}
137