blob: dd251e9fad109560ff34d917f34958ba0b079a5f [file] [log] [blame]
Joel Galenson4747e6f2021-12-02 07:53:02 -08001// This file is generated by cargo2android.py --config cargo2android.json.
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",
Joel Galenson51065042021-09-22 11:15:48 -070026 cargo_env_compat: true,
David LeGare316092b2022-03-02 16:21:18 +000027 cargo_pkg_version: "2.27.1",
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070028 srcs: ["src/lib.rs"],
29 edition: "2015",
Matthew Maurerc4e85f22020-07-06 13:34:13 -070030 rustlibs: [
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070031 "libprotobuf",
32 ],
33}
34
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070035rust_test_host {
Joel Galenson4747e6f2021-12-02 07:53:02 -080036 name: "protobuf-codegen_test_src_lib",
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070037 crate_name: "protobuf_codegen",
Joel Galenson51065042021-09-22 11:15:48 -070038 cargo_env_compat: true,
David LeGare316092b2022-03-02 16:21:18 +000039 cargo_pkg_version: "2.27.1",
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070040 srcs: ["src/lib.rs"],
41 test_suites: ["general-tests"],
42 auto_gen_config: true,
Elliott Hughesa013f1f2021-04-01 17:02:23 -070043 test_options: {
44 unit_test: true,
45 },
Chih-Hung Hsieh35dedf62020-07-16 16:27:50 -070046 edition: "2015",
47 rustlibs: [
48 "libprotobuf",
49 ],
50}
51
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070052rust_binary_host {
53 name: "protoc-gen-rust",
54 crate_name: "protoc_gen_rust",
Joel Galenson51065042021-09-22 11:15:48 -070055 cargo_env_compat: true,
David LeGare316092b2022-03-02 16:21:18 +000056 cargo_pkg_version: "2.27.1",
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070057 srcs: ["src/bin/protoc-gen-rust.rs"],
58 edition: "2015",
Matthew Maurerc4e85f22020-07-06 13:34:13 -070059 rustlibs: [
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070060 "libprotobuf",
61 "libprotobuf_codegen",
62 ],
63}