blob: babd7e3bb2bb2d9214aad17fd43709a621b3add6 [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",
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -070032 srcs: [
33 "src/lib.rs",
34 ":copy_protobuf_build_out",
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070035 ],
Chih-Hung Hsieh1b6b6472020-10-25 04:16:21 -070036 edition: "2018",
37 features: ["bytes"],
Matthew Maurer07b3f152020-07-06 13:34:06 -070038 rustlibs: [
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070039 "libbytes",
40 ],
Jiyong Park5ed28a52020-12-07 15:51:20 +090041 apex_available: [
42 "//apex_available:platform",
43 "com.android.virt",
44 ],
Chih-Hung Hsiehcfc3a232020-06-10 20:13:05 -070045}
46
47// dependent_library ["feature_list"]
Haibo Huangca95bfd2021-02-09 17:48:30 -080048// bytes-1.0.1 "default,std"