blob: 37d494f57fa238309b99a0c54761739afceef7cd [file] [log] [blame]
Hyun Jae Moonbb8920e2023-03-29 16:48:48 +00001// This file is generated by cargo2android.py --run --device --tests.
2// Do not modify this file as changes will be overridden on upgrade.
3
4
5
Bob Badour8f32a2b2023-04-19 09:47:56 -07006package {
7 default_applicable_licenses: [
8 "external_rust_crates_protobuf-json-mapping_license",
9 ],
10}
11
12// Added automatically by a large-scale-change
13// See: http://go/android-license-faq
14license {
15 name: "external_rust_crates_protobuf-json-mapping_license",
16 visibility: [":__subpackages__"],
17 license_kinds: [
18 "SPDX-license-identifier-MIT",
19 ],
20 license_text: [
21 "LICENSE",
22 ],
23}
24
Hyun Jae Moonbb8920e2023-03-29 16:48:48 +000025rust_library {
26 name: "libprotobuf_json_mapping",
27 host_supported: true,
28 crate_name: "protobuf_json_mapping",
29 cargo_env_compat: true,
30 cargo_pkg_version: "3.2.0",
31 srcs: ["src/lib.rs"],
32 edition: "2021",
33 rustlibs: [
34 "libprotobuf",
35 "libprotobuf_support",
36 "libthiserror",
37 ],
38 apex_available: [
39 "//apex_available:platform",
40 "//apex_available:anyapex",
41 ],
42 product_available: true,
43 vendor_available: true,
44}
45
46rust_test {
47 name: "protobuf-json-mapping_test_src_lib",
48 host_supported: true,
49 crate_name: "protobuf_json_mapping",
50 cargo_env_compat: true,
51 cargo_pkg_version: "3.2.0",
52 srcs: ["src/lib.rs"],
53 test_suites: ["general-tests"],
54 auto_gen_config: true,
55 test_options: {
56 unit_test: true,
57 },
58 edition: "2021",
59 rustlibs: [
60 "libprotobuf",
61 "libprotobuf_support",
62 "libthiserror",
63 ],
64}