blob: 49fe9d8b89026296ac6eb458423a9fa1d02b9596 [file] [log] [blame]
Andrew Walbranc15bd3a2023-11-09 13:58:28 +00001// This file is generated by cargo_embargo.
Hyun Jae Moonbb8920e2023-03-29 16:48:48 +00002// Do not modify this file as changes will be overridden on upgrade.
3
Bob Badour8f32a2b2023-04-19 09:47:56 -07004package {
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
12license {
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 Moonbb8920e2023-03-29 16:48:48 +000023rust_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
44rust_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}