• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --run --dependencies.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: [
6        "external_rust_crates_grpcio-compiler_license",
7    ],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23// See: http://go/android-license-faq
24license {
25    name: "external_rust_crates_grpcio-compiler_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29        "SPDX-license-identifier-MIT",
30    ],
31    license_text: [
32        "LICENSE",
33    ],
34}
35
36rust_binary_host {
37    name: "grpc_rust_plugin",
38    crate_name: "grpc_rust_plugin",
39    srcs: ["src/bin/grpc_rust_plugin.rs"],
40    edition: "2018",
41    features: [
42        "default",
43        "protobuf",
44        "protobuf-codec",
45    ],
46    rustlibs: [
47        "libgrpcio_compiler",
48        "libprotobuf",
49    ],
50}
51
52rust_library_host {
53    name: "libgrpcio_compiler",
54    crate_name: "grpcio_compiler",
55    srcs: ["src/lib.rs"],
56    edition: "2018",
57    features: [
58        "default",
59        "protobuf",
60        "protobuf-codec",
61    ],
62    rustlibs: [
63        "libprotobuf",
64    ],
65}
66
67// dependent_library ["feature_list"]
68//   protobuf-2.22.1
69