blob: 620d9f74781dafbbc982f387635dfdfbad160f2b [file] [log] [blame]
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -07001// This file is generated by cargo2android.py --run --dependencies --tests.
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -07002
Bob Badour3a8b8732021-02-12 18:06:29 -08003package {
4 default_applicable_licenses: [
5 "external_rust_crates_protobuf-codegen_license",
6 ],
7}
8
9// Added automatically by a large-scale-change
10// See: http://go/android-license-faq
11license {
12 name: "external_rust_crates_protobuf-codegen_license",
13 visibility: [":__subpackages__"],
14 license_kinds: [
15 "SPDX-license-identifier-MIT",
16 ],
17 license_text: [
18 "LICENSE.txt",
19 ],
20}
21
Matthew Maurerc4e85f22020-07-06 13:34:13 -070022rust_library_host {
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070023 name: "libprotobuf_codegen",
Haibo Huangb7f1d002021-01-07 18:06:37 -080024 // has rustc warnings
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070025 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",
Haibo Huangb7f1d002021-01-07 18:06:37 -080035 // has rustc warnings
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070036 crate_name: "protobuf_codegen",
37 srcs: ["src/lib.rs"],
38 test_suites: ["general-tests"],
39 auto_gen_config: true,
40 edition: "2015",
41 rustlibs: [
42 "libprotobuf",
43 ],
44}
45
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070046rust_binary_host {
47 name: "protoc-gen-rust",
Haibo Huangb7f1d002021-01-07 18:06:37 -080048 // has rustc warnings
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070049 crate_name: "protoc_gen_rust",
50 srcs: ["src/bin/protoc-gen-rust.rs"],
51 edition: "2015",
Matthew Maurerc4e85f22020-07-06 13:34:13 -070052 rustlibs: [
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070053 "libprotobuf",
54 "libprotobuf_codegen",
55 ],
56}
57
58// dependent_library ["feature_list"]
Haibo Huangb7f1d002021-01-07 18:06:37 -080059// protobuf-2.20.0