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 default_applicable_licenses: ["external_rust_crates_protobuf_license"], 8} 9 10// Added automatically by a large-scale-change 11// See: http://go/android-license-faq 12license { 13 name: "external_rust_crates_protobuf_license", 14 visibility: [":__subpackages__"], 15 license_kinds: [ 16 "SPDX-license-identifier-MIT", 17 ], 18 license_text: [ 19 "LICENSE.txt", 20 ], 21} 22 23genrule { 24 name: "copy_protobuf_build_out", 25 srcs: ["out/*"], 26 cmd: "cp $(in) $(genDir)", 27 out: ["version.rs"], 28} 29 30rust_library { 31 name: "libprotobuf", 32 host_supported: true, 33 crate_name: "protobuf", 34 cargo_env_compat: true, 35 cargo_pkg_version: "3.2.0", 36 crate_root: "src/lib.rs", 37 srcs: [":copy_protobuf_build_out"], 38 edition: "2021", 39 features: ["bytes"], 40 rustlibs: [ 41 "libbytes", 42 "libonce_cell", 43 "libprotobuf_support", 44 "libthiserror", 45 ], 46 apex_available: [ 47 "//apex_available:platform", 48 "//apex_available:anyapex", 49 ], 50 product_available: true, 51 vendor_available: true, 52 min_sdk_version: "29", 53} 54