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 cargo_env_compat: true, 33 cargo_pkg_version: "2.27.1", 34 srcs: [ 35 "src/lib.rs", 36 ":copy_protobuf_build_out", 37 ], 38 edition: "2018", 39 features: ["bytes"], 40 rustlibs: [ 41 "libbytes", 42 ], 43 apex_available: [ 44 "//apex_available:platform", 45 "com.android.bluetooth", 46 "com.android.compos", 47 "com.android.virt", 48 ], 49 min_sdk_version: "29", 50} 51