Chih-Hung Hsieh | 35dedf6 | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --tests. |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 2 | |
Bob Badour | 3a8b873 | 2021-02-12 18:06:29 -0800 | [diff] [blame] | 3 | package { |
| 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 |
| 11 | license { |
| 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 Maurer | c4e85f2 | 2020-07-06 13:34:13 -0700 | [diff] [blame] | 22 | rust_library_host { |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 23 | name: "libprotobuf_codegen", |
Haibo Huang | b7f1d00 | 2021-01-07 18:06:37 -0800 | [diff] [blame] | 24 | // has rustc warnings |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 25 | crate_name: "protobuf_codegen", |
| 26 | srcs: ["src/lib.rs"], |
| 27 | edition: "2015", |
Matthew Maurer | c4e85f2 | 2020-07-06 13:34:13 -0700 | [diff] [blame] | 28 | rustlibs: [ |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 29 | "libprotobuf", |
| 30 | ], |
| 31 | } |
| 32 | |
Chih-Hung Hsieh | 35dedf6 | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 33 | rust_test_host { |
| 34 | name: "protobuf-codegen_host_test_src_lib", |
Haibo Huang | b7f1d00 | 2021-01-07 18:06:37 -0800 | [diff] [blame] | 35 | // has rustc warnings |
Chih-Hung Hsieh | 35dedf6 | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 36 | 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 Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 46 | rust_binary_host { |
| 47 | name: "protoc-gen-rust", |
Haibo Huang | b7f1d00 | 2021-01-07 18:06:37 -0800 | [diff] [blame] | 48 | // has rustc warnings |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 49 | crate_name: "protoc_gen_rust", |
| 50 | srcs: ["src/bin/protoc-gen-rust.rs"], |
| 51 | edition: "2015", |
Matthew Maurer | c4e85f2 | 2020-07-06 13:34:13 -0700 | [diff] [blame] | 52 | rustlibs: [ |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 53 | "libprotobuf", |
| 54 | "libprotobuf_codegen", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | // dependent_library ["feature_list"] |
Haibo Huang | b7f1d00 | 2021-01-07 18:06:37 -0800 | [diff] [blame] | 59 | // protobuf-2.20.0 |