blob: 78e57345ccb2eadfcc67fe87251f9699393b4530 [file] [log] [blame]
Joel Galensonfd421432021-04-28 08:37:54 -07001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galensonfa77f002021-04-02 11:32:01 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -07003
Bob Badoure92c3b72021-02-12 18:01:30 -08004package {
5 default_applicable_licenses: ["external_rust_crates_protobuf_license"],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11 name: "external_rust_crates_protobuf_license",
12 visibility: [":__subpackages__"],
13 license_kinds: [
14 "SPDX-license-identifier-MIT",
15 ],
16 license_text: [
17 "LICENSE.txt",
18 ],
19}
20
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -070021genrule {
22 name: "copy_protobuf_build_out",
23 srcs: ["out/*"],
24 cmd: "cp $(in) $(genDir)",
25 out: ["version.rs"],
26}
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070027
Chih-Hung Hsieh700f4b02020-07-10 14:15:10 -070028rust_library {
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070029 name: "libprotobuf",
Chih-Hung Hsieh700f4b02020-07-10 14:15:10 -070030 host_supported: true,
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070031 crate_name: "protobuf",
Joel Galenson14e56e02021-09-22 11:15:11 -070032 cargo_env_compat: true,
David LeGare793d84b2022-03-02 16:21:10 +000033 cargo_pkg_version: "2.27.1",
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -070034 srcs: [
35 "src/lib.rs",
36 ":copy_protobuf_build_out",
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070037 ],
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -070038 edition: "2018",
39 features: ["bytes"],
Matthew Maurer07b3f152020-07-06 13:34:06 -070040 rustlibs: [
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070041 "libbytes",
42 ],
Jiyong Park5ed28a52020-12-07 15:51:20 +090043 apex_available: [
44 "//apex_available:platform",
Roopa Sattiraju247b0cd2021-12-21 17:15:01 -080045 "com.android.bluetooth",
Alan Stokes892b1fb2021-12-08 16:02:30 +000046 "com.android.compos",
Jiyong Park5ed28a52020-12-07 15:51:20 +090047 "com.android.virt",
48 ],
Roopa Sattiraju247b0cd2021-12-21 17:15:01 -080049 min_sdk_version: "29",
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070050}