Joel Galenson | fd42143 | 2021-04-28 08:37:54 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Joel Galenson | fa77f00 | 2021-04-02 11:32:01 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 3 | |
Bob Badour | e92c3b7 | 2021-02-12 18:01:30 -0800 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: ["external_rust_crates_protobuf_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change |
| 9 | // See: http://go/android-license-faq |
| 10 | license { |
| 11 | name: "external_rust_crates_protobuf_license", |
| 12 | visibility: [":__subpackages__"], |
| 13 | license_kinds: [ |
| 14 | "SPDX-license-identifier-MIT", |
| 15 | ], |
| 16 | license_text: [ |
| 17 | "LICENSE.txt", |
| 18 | ], |
| 19 | } |
| 20 | |
Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 21 | genrule { |
| 22 | name: "copy_protobuf_build_out", |
| 23 | srcs: ["out/*"], |
| 24 | cmd: "cp $(in) $(genDir)", |
| 25 | out: ["version.rs"], |
| 26 | } |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 27 | |
Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 28 | rust_library { |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 29 | name: "libprotobuf", |
Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 30 | host_supported: true, |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 31 | crate_name: "protobuf", |
Joel Galenson | 14e56e0 | 2021-09-22 11:15:11 -0700 | [diff] [blame] | 32 | cargo_env_compat: true, |
| 33 | cargo_pkg_version: "2.25.1", |
Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 34 | srcs: [ |
| 35 | "src/lib.rs", |
| 36 | ":copy_protobuf_build_out", |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 37 | ], |
Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 38 | edition: "2018", |
| 39 | features: ["bytes"], |
Matthew Maurer | 07b3f15 | 2020-07-06 13:34:06 -0700 | [diff] [blame] | 40 | rustlibs: [ |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 41 | "libbytes", |
| 42 | ], |
Jiyong Park | 5ed28a5 | 2020-12-07 15:51:20 +0900 | [diff] [blame] | 43 | apex_available: [ |
| 44 | "//apex_available:platform", |
Roopa Sattiraju | 247b0cd | 2021-12-21 17:15:01 -0800 | [diff] [blame^] | 45 | "com.android.bluetooth", |
Alan Stokes | 892b1fb | 2021-12-08 16:02:30 +0000 | [diff] [blame] | 46 | "com.android.compos", |
Jiyong Park | 5ed28a5 | 2020-12-07 15:51:20 +0900 | [diff] [blame] | 47 | "com.android.virt", |
| 48 | ], |
Roopa Sattiraju | 247b0cd | 2021-12-21 17:15:01 -0800 | [diff] [blame^] | 49 | min_sdk_version: "29", |
Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 50 | } |