1// Only enable composite-disk and include cdisk_spec.rs for now. 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "external_crosvm_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-BSD 8 default_applicable_licenses: ["external_crosvm_license"], 9} 10 11rust_library { 12 name: "libprotos", 13 defaults: ["crosvm_defaults"], 14 // has rustc warnings 15 host_supported: true, 16 crate_name: "protos", 17 srcs: ["src/lib.rs"], 18 features: [ 19 "composite-disk", 20 ], 21 edition: "2018", 22 rustlibs: [ 23 "libprotobuf", 24 "libcdisk_spec_proto", 25 ], 26} 27 28rust_protobuf { 29 name: "libcdisk_spec_proto", 30 crate_name: "cdisk_spec_proto", 31 protos: ["src/cdisk_spec.proto"], 32 source_stem: "cdisk_spec", 33 host_supported: true, 34 apex_available: [ 35 "//apex_available:platform", 36 "com.android.virt", 37 ], 38} 39 40rust_protobuf { 41 name: "libcrosvm_plugin_proto", 42 crate_name: "crosvm_plugin_proto", 43 protos: ["src/plugin.proto"], 44 source_stem: "plugin", 45 host_supported: true, 46} 47 48// dependent_library ["feature_list"] 49// cfg-if-1.0.0 50// either-1.6.1 "default,use_std" 51// getrandom-0.2.2 "std" 52// libc-0.2.93 "default,std" 53// log-0.4.14 54// ppv-lite86-0.2.10 "simd,std" 55// protobuf-2.22.1 56// protobuf-codegen-2.22.1 57// protoc-2.22.1 58// protoc-rust-2.22.1 59// rand-0.8.3 "alloc,default,getrandom,libc,rand_chacha,rand_hc,std,std_rng" 60// rand_chacha-0.3.0 "std" 61// rand_core-0.6.2 "alloc,getrandom,std" 62// remove_dir_all-0.5.3 63// tempfile-3.2.0 64// which-4.1.0 65