1// This file is generated by cargo_embargo. 2// Do not modify this file because the changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_protobuf_license"], 6 default_team: "trendy_team_android_rust", 7} 8 9license { 10 name: "external_rust_crates_protobuf_license", 11 visibility: [":__subpackages__"], 12 license_kinds: ["SPDX-license-identifier-MIT"], 13 license_text: ["LICENSE"], 14} 15 16genrule { 17 name: "copy_protobuf_build_out", 18 srcs: ["out/*"], 19 cmd: "cp $(in) $(genDir)", 20 out: ["version.rs"], 21} 22 23rust_library { 24 name: "libprotobuf", 25 host_supported: true, 26 crate_name: "protobuf", 27 cargo_env_compat: true, 28 cargo_pkg_version: "3.2.0", 29 crate_root: "src/lib.rs", 30 srcs: [":copy_protobuf_build_out"], 31 edition: "2021", 32 features: ["bytes"], 33 rustlibs: [ 34 "libbytes", 35 "libonce_cell", 36 "libprotobuf_support", 37 "libthiserror", 38 ], 39 apex_available: [ 40 "//apex_available:platform", 41 "//apex_available:anyapex", 42 ], 43 product_available: true, 44 vendor_available: true, 45 min_sdk_version: "29", 46} 47