1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_protobuf_license"], 6} 7 8// Added automatically by a large-scale-change 9// See: http://go/android-license-faq 10license { 11 name: "external_rust_crates_protobuf_license", 12 visibility: [":__subpackages__"], 13 license_kinds: [ 14 "SPDX-license-identifier-MIT", 15 ], 16 license_text: [ 17 "LICENSE.txt", 18 ], 19} 20 21genrule { 22 name: "copy_protobuf_build_out", 23 srcs: ["out/*"], 24 cmd: "cp $(in) $(genDir)", 25 out: ["version.rs"], 26} 27 28rust_library { 29 name: "libprotobuf", 30 host_supported: true, 31 crate_name: "protobuf", 32 srcs: [ 33 "src/lib.rs", 34 ":copy_protobuf_build_out", 35 ], 36 edition: "2018", 37 features: ["bytes"], 38 rustlibs: [ 39 "libbytes", 40 ], 41 apex_available: [ 42 "//apex_available:platform", 43 "com.android.virt", 44 ], 45} 46 47// dependent_library ["feature_list"] 48// bytes-1.0.1 "default,std" 49