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: [ 6 "external_rust_crates_protobuf-codegen_license", 7 ], 8} 9 10// Added automatically by a large-scale-change 11// See: http://go/android-license-faq 12license { 13 name: "external_rust_crates_protobuf-codegen_license", 14 visibility: [":__subpackages__"], 15 license_kinds: [ 16 "SPDX-license-identifier-MIT", 17 ], 18 license_text: [ 19 "LICENSE.txt", 20 ], 21} 22 23rust_library_host { 24 name: "libprotobuf_codegen", 25 crate_name: "protobuf_codegen", 26 cargo_env_compat: true, 27 cargo_pkg_version: "2.27.1", 28 srcs: ["src/lib.rs"], 29 edition: "2015", 30 rustlibs: [ 31 "libprotobuf", 32 ], 33} 34 35rust_test_host { 36 name: "protobuf-codegen_test_src_lib", 37 crate_name: "protobuf_codegen", 38 cargo_env_compat: true, 39 cargo_pkg_version: "2.27.1", 40 srcs: ["src/lib.rs"], 41 test_suites: ["general-tests"], 42 auto_gen_config: true, 43 test_options: { 44 unit_test: true, 45 }, 46 edition: "2015", 47 rustlibs: [ 48 "libprotobuf", 49 ], 50} 51 52rust_binary_host { 53 name: "protoc-gen-rust", 54 crate_name: "protoc_gen_rust", 55 cargo_env_compat: true, 56 cargo_pkg_version: "2.27.1", 57 srcs: ["src/bin/protoc-gen-rust.rs"], 58 edition: "2015", 59 rustlibs: [ 60 "libprotobuf", 61 "libprotobuf_codegen", 62 ], 63} 64