• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_applicable_licenses: [
8        "external_rust_crates_protobuf_2.27.1_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_2.27.1_license",
16    visibility: [":__subpackages__"],
17    license_kinds: [
18        "SPDX-license-identifier-MIT",
19    ],
20    license_text: [
21        "LICENSE.txt",
22    ],
23}
24
25genrule {
26    name: "copy_protobuf_deprecated_build_out",
27    srcs: ["out/*"],
28    cmd: "cp $(in) $(genDir)",
29    out: ["version.rs"],
30}
31
32rust_library {
33    name: "libprotobuf_deprecated",
34    host_supported: true,
35    crate_name: "protobuf",
36    cargo_env_compat: true,
37    cargo_pkg_version: "2.27.1",
38    crate_root: "src/lib.rs",
39    srcs: [":copy_protobuf_deprecated_build_out"],
40    edition: "2018",
41    features: ["bytes"],
42    rustlibs: ["libbytes"],
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.btservices",
46        "com.android.compos",
47        "com.android.virt",
48    ],
49    product_available: true,
50    vendor_available: true,
51    min_sdk_version: "29",
52}
53