blob: e180529af232933fee1e76b305f1f1ce97903943 [file] [log] [blame]
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -07001// This file is generated by cargo2android.py --run --dependencies --tests.
Elliott Hughesa013f1f2021-04-01 17:02:23 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -07003
Bob Badour3a8b8732021-02-12 18:06:29 -08004package {
5 default_applicable_licenses: [
6 "external_rust_crates_protobuf-codegen_license",
7 ],
8}
9
10// Added automatically by a large-scale-change
11// See: http://go/android-license-faq
12license {
13 name: "external_rust_crates_protobuf-codegen_license",
14 visibility: [":__subpackages__"],
15 license_kinds: [
16 "SPDX-license-identifier-MIT",
17 ],
18 license_text: [
19 "LICENSE.txt",
20 ],
21}
22
Matthew Maurerc4e85f22020-07-06 13:34:13 -070023rust_library_host {
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070024 name: "libprotobuf_codegen",
25 crate_name: "protobuf_codegen",
26 srcs: ["src/lib.rs"],
27 edition: "2015",
Matthew Maurerc4e85f22020-07-06 13:34:13 -070028 rustlibs: [
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070029 "libprotobuf",
30 ],
31}
32
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070033rust_test_host {
34 name: "protobuf-codegen_host_test_src_lib",
35 crate_name: "protobuf_codegen",
36 srcs: ["src/lib.rs"],
37 test_suites: ["general-tests"],
38 auto_gen_config: true,
Elliott Hughesa013f1f2021-04-01 17:02:23 -070039 test_options: {
40 unit_test: true,
41 },
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070042 edition: "2015",
43 rustlibs: [
44 "libprotobuf",
45 ],
46}
47
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070048rust_binary_host {
49 name: "protoc-gen-rust",
50 crate_name: "protoc_gen_rust",
51 srcs: ["src/bin/protoc-gen-rust.rs"],
52 edition: "2015",
Matthew Maurerc4e85f22020-07-06 13:34:13 -070053 rustlibs: [
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070054 "libprotobuf",
55 "libprotobuf_codegen",
56 ],
57}
58
59// dependent_library ["feature_list"]
Elliott Hughesa013f1f2021-04-01 17:02:23 -070060// protobuf-2.22.1