• 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
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    min_sdk_version: "29",
57}
58
59rust_test {
60    name: "webpki_test_src_lib",
61    host_supported: true,
62    crate_name: "webpki",
63    cargo_env_compat: true,
64    cargo_pkg_version: "0.22.4",
65    crate_root: "src/lib.rs",
66    test_suites: ["general-tests"],
67    auto_gen_config: true,
68    test_options: {
69        unit_test: true,
70    },
71    edition: "2018",
72    features: [
73        "alloc",
74        "std",
75    ],
76    rustlibs: [
77        "libbase64_rust",
78        "libring",
79        "libserde",
80        "libserde_json",
81        "libuntrusted",
82    ],
83}
84
85rust_test {
86    name: "webpki_test_tests_dns_name_tests",
87    host_supported: true,
88    crate_name: "dns_name_tests",
89    cargo_env_compat: true,
90    cargo_pkg_version: "0.22.4",
91    crate_root: "tests/dns_name_tests.rs",
92    test_suites: ["general-tests"],
93    auto_gen_config: true,
94    test_options: {
95        unit_test: true,
96    },
97    edition: "2018",
98    features: [
99        "alloc",
100        "std",
101    ],
102    rustlibs: [
103        "libbase64_rust",
104        "libring",
105        "libserde",
106        "libserde_json",
107        "libuntrusted",
108        "libwebpki",
109    ],
110}
111
112rust_test {
113    name: "webpki_test_tests_integration",
114    host_supported: true,
115    crate_name: "integration",
116    cargo_env_compat: true,
117    cargo_pkg_version: "0.22.4",
118    crate_root: "tests/integration.rs",
119    test_suites: ["general-tests"],
120    auto_gen_config: true,
121    test_options: {
122        unit_test: true,
123    },
124    edition: "2018",
125    features: [
126        "alloc",
127        "std",
128    ],
129    rustlibs: [
130        "libbase64_rust",
131        "libring",
132        "libserde",
133        "libserde_json",
134        "libuntrusted",
135        "libwebpki",
136    ],
137}
138