Chih-Hung Hsieh | 35dedf6 | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --tests. |
Elliott Hughes | a013f1f | 2021-04-01 17:02:23 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 3 | |
Bob Badour | 3a8b873 | 2021-02-12 18:06:29 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 12 | license { |
| 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 Maurer | c4e85f2 | 2020-07-06 13:34:13 -0700 | [diff] [blame] | 23 | rust_library_host { |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 24 | name: "libprotobuf_codegen", |
| 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", |
| 35 | crate_name: "protobuf_codegen", |
| 36 | srcs: ["src/lib.rs"], |
| 37 | test_suites: ["general-tests"], |
| 38 | auto_gen_config: true, |
Elliott Hughes | a013f1f | 2021-04-01 17:02:23 -0700 | [diff] [blame] | 39 | test_options: { |
| 40 | unit_test: true, |
| 41 | }, |
Chih-Hung Hsieh | 35dedf6 | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 42 | edition: "2015", |
| 43 | rustlibs: [ |
| 44 | "libprotobuf", |
| 45 | ], |
| 46 | } |
| 47 | |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 48 | rust_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 Maurer | c4e85f2 | 2020-07-06 13:34:13 -0700 | [diff] [blame] | 53 | rustlibs: [ |
Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame] | 54 | "libprotobuf", |
| 55 | "libprotobuf_codegen", |
| 56 | ], |
| 57 | } |
| 58 | |
| 59 | // dependent_library ["feature_list"] |
Elliott Hughes | a013f1f | 2021-04-01 17:02:23 -0700 | [diff] [blame] | 60 | // protobuf-2.22.1 |