• 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    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    default_applicable_licenses: ["external_crosvm_license"],
13}
14
15rust_library {
16    name: "libprotos",
17    defaults: ["crosvm_defaults"],
18    host_supported: true,
19    crate_name: "protos",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "composite-disk",
26        "registered_events",
27    ],
28    rustlibs: [
29        "libcdisk_spec_proto",
30        "libprotobuf",
31        "libregistered_events_proto",
32    ],
33    apex_available: ["com.android.virt"],
34}
35
36rust_protobuf {
37    name: "libcdisk_spec_proto",
38    crate_name: "cdisk_spec_proto",
39    protos: ["src/cdisk_spec.proto"],
40    source_stem: "cdisk_spec",
41    host_supported: true,
42    apex_available: [
43        "com.android.virt",
44    ],
45}
46
47rust_protobuf {
48    name: "libregistered_events_proto",
49    crate_name: "registered_events_proto",
50    protos: ["src/registered_events.proto"],
51    source_stem: "registered_events",
52    host_supported: true,
53    apex_available: [
54        "com.android.virt",
55    ],
56}
57
58rust_protobuf {
59    name: "libcrosvm_plugin_proto",
60    crate_name: "crosvm_plugin_proto",
61    protos: ["src/plugin.proto"],
62    source_stem: "plugin",
63    host_supported: true,
64}
65