| Andrew Walbran | c15bd3a | 2023-11-09 13:58:28 +0000 | [diff] [blame] | 1 | // This file is generated by cargo_embargo. |
| Hyun Jae Moon | bb8920e | 2023-03-29 16:48:48 +0000 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
| 3 | |
| Bob Badour | 8f32a2b | 2023-04-19 09:47:56 -0700 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: [ |
| 6 | "external_rust_crates_protobuf-json-mapping_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-json-mapping_license", |
| 14 | visibility: [":__subpackages__"], |
| 15 | license_kinds: [ |
| 16 | "SPDX-license-identifier-MIT", |
| 17 | ], |
| 18 | license_text: [ |
| 19 | "LICENSE", |
| 20 | ], |
| 21 | } |
| 22 | |
| Hyun Jae Moon | bb8920e | 2023-03-29 16:48:48 +0000 | [diff] [blame] | 23 | rust_library { |
| 24 | name: "libprotobuf_json_mapping", |
| 25 | host_supported: true, |
| 26 | crate_name: "protobuf_json_mapping", |
| 27 | cargo_env_compat: true, |
| 28 | cargo_pkg_version: "3.2.0", |
| 29 | srcs: ["src/lib.rs"], |
| 30 | edition: "2021", |
| 31 | rustlibs: [ |
| 32 | "libprotobuf", |
| 33 | "libprotobuf_support", |
| 34 | "libthiserror", |
| 35 | ], |
| 36 | apex_available: [ |
| 37 | "//apex_available:platform", |
| 38 | "//apex_available:anyapex", |
| 39 | ], |
| 40 | product_available: true, |
| 41 | vendor_available: true, |
| 42 | } |
| 43 | |
| 44 | rust_test { |
| 45 | name: "protobuf-json-mapping_test_src_lib", |
| 46 | host_supported: true, |
| 47 | crate_name: "protobuf_json_mapping", |
| 48 | cargo_env_compat: true, |
| 49 | cargo_pkg_version: "3.2.0", |
| 50 | srcs: ["src/lib.rs"], |
| 51 | test_suites: ["general-tests"], |
| 52 | auto_gen_config: true, |
| 53 | test_options: { |
| 54 | unit_test: true, |
| 55 | }, |
| 56 | edition: "2021", |
| 57 | rustlibs: [ |
| 58 | "libprotobuf", |
| 59 | "libprotobuf_support", |
| 60 | "libthiserror", |
| 61 | ], |
| 62 | } |