1// This file is generated by cargo_embargo.
2// Do not modify this file because the changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_quiche_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_quiche_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-BSD-2-Clause",
14        "SPDX-license-identifier-ISC",
15        "SPDX-license-identifier-OpenSSL",
16    ],
17    license_text: ["LICENSE"],
18}
19
20rust_library {
21    name: "libquiche",
22    host_supported: true,
23    crate_name: "quiche",
24    cargo_env_compat: true,
25    cargo_pkg_version: "0.17.1",
26    crate_root: "src/lib.rs",
27    edition: "2018",
28    rlibs: [
29        "liblazy_static",
30        "liblibc",
31        "liblibm",
32        "liblog_rust",
33        "liboctets",
34        "libring",
35        "libslab",
36        "libsmallvec",
37    ],
38    prefer_rlib: true,
39    shared_libs: [
40        "libcrypto",
41        "libssl",
42    ],
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.resolv",
46    ],
47    product_available: true,
48    vendor_available: true,
49    min_sdk_version: "29",
50}
51
52rust_ffi {
53    name: "libquiche_ffi",
54    host_supported: true,
55    crate_name: "quiche",
56    cargo_env_compat: true,
57    cargo_pkg_version: "0.17.1",
58    crate_root: "src/lib.rs",
59    edition: "2018",
60    rlibs: [
61        "liblazy_static",
62        "liblibc",
63        "liblibm",
64        "liblog_rust",
65        "liboctets",
66        "libring",
67        "libslab",
68        "libsmallvec",
69    ],
70    prefer_rlib: true,
71    shared_libs: [
72        "libcrypto",
73        "libssl",
74    ],
75    apex_available: [
76        "//apex_available:platform",
77        "com.android.resolv",
78    ],
79    product_available: true,
80    vendor_available: true,
81    min_sdk_version: "29",
82}
83
84rust_test_host {
85    name: "quiche_host_test_src_lib",
86    crate_name: "quiche",
87    cargo_env_compat: true,
88    cargo_pkg_version: "0.17.1",
89    crate_root: "src/lib.rs",
90    test_suites: ["general-tests"],
91    auto_gen_config: true,
92    test_options: {
93        unit_test: true,
94    },
95    edition: "2018",
96    features: [
97        "boringssl-vendored",
98        "default",
99    ],
100    rustlibs: [
101        "liblazy_static",
102        "liblibc",
103        "liblibm",
104        "liblog_rust",
105        "libmio",
106        "liboctets",
107        "libring",
108        "libslab",
109        "libsmallvec",
110        "liburl",
111    ],
112    shared_libs: [
113        "libcrypto",
114        "libssl",
115    ],
116    data: [
117        "examples/cert.crt",
118        "examples/cert.key",
119        "examples/cert-big.crt",
120        "examples/rootca.crt",
121    ],
122}
123
124rust_test {
125    name: "quiche_device_test_src_lib",
126    crate_name: "quiche",
127    cargo_env_compat: true,
128    cargo_pkg_version: "0.17.1",
129    crate_root: "src/lib.rs",
130    test_suites: ["general-tests"],
131    auto_gen_config: true,
132    edition: "2018",
133    features: [
134        "boringssl-vendored",
135        "default",
136    ],
137    rustlibs: [
138        "liblazy_static",
139        "liblibc",
140        "liblibm",
141        "liblog_rust",
142        "libmio",
143        "liboctets",
144        "libring",
145        "libslab",
146        "libsmallvec",
147        "liburl",
148    ],
149    static_libs: [
150        "libcrypto_static",
151        "libssl",
152    ],
153    data: [
154        "examples/cert.crt",
155        "examples/cert.key",
156        "examples/cert-big.crt",
157        "examples/rootca.crt",
158    ],
159    shared_libs: ["libc++"],
160}
161
162rust_library_rlib {
163    name: "libquiche_static",
164    host_supported: true,
165    crate_name: "quiche",
166    cargo_env_compat: true,
167    cargo_pkg_version: "0.17.1",
168    crate_root: "src/lib.rs",
169    edition: "2018",
170    rustlibs: [
171        "liblazy_static",
172        "liblibc",
173        "liblibm",
174        "liblog_rust",
175        "liboctets",
176        "libring",
177        "libslab",
178        "libsmallvec",
179    ],
180    static_libs: [
181        "libcrypto_static",
182        "libssl",
183    ],
184    apex_available: [
185        "//apex_available:platform",
186        "com.android.resolv",
187    ],
188    product_available: true,
189    vendor_available: true,
190    min_sdk_version: "29",
191}
192
193cc_library_headers {
194    name: "libquiche_ffi_headers",
195    export_include_dirs: ["include"],
196    apex_available: [
197        "//apex_available:platform",
198        "com.android.resolv",
199    ],
200    min_sdk_version: "29",
201}
202