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: [ 8 "external_rust_crates_protobuf-codegen_license", 9 ], 10} 11 12// Added automatically by a large-scale-change 13// See: http://go/android-license-faq 14license { 15 name: "external_rust_crates_protobuf-codegen_license", 16 visibility: [":__subpackages__"], 17 license_kinds: [ 18 "SPDX-license-identifier-MIT", 19 ], 20 license_text: [ 21 "LICENSE.txt", 22 ], 23} 24 25rust_library_host { 26 name: "libprotobuf_codegen", 27 crate_name: "protobuf_codegen", 28 cargo_env_compat: true, 29 cargo_pkg_version: "3.2.0", 30 crate_root: "src/lib.rs", 31 edition: "2021", 32 rustlibs: [ 33 "libanyhow", 34 "libonce_cell", 35 "libprotobuf", 36 "libprotobuf_parse", 37 "libregex", 38 "libtempfile", 39 "libthiserror", 40 ], 41} 42 43rust_test_host { 44 name: "protobuf-codegen_test_src_lib", 45 crate_name: "protobuf_codegen", 46 cargo_env_compat: true, 47 cargo_pkg_version: "3.2.0", 48 crate_root: "src/lib.rs", 49 test_suites: ["general-tests"], 50 auto_gen_config: true, 51 test_options: { 52 unit_test: true, 53 }, 54 edition: "2021", 55 rustlibs: [ 56 "libanyhow", 57 "libonce_cell", 58 "libprotobuf", 59 "libprotobuf_parse", 60 "libregex", 61 "libtempfile", 62 "libthiserror", 63 ], 64} 65 66rust_binary_host { 67 name: "protoc-gen-rust", 68 crate_name: "protoc_gen_rust", 69 cargo_env_compat: true, 70 cargo_pkg_version: "3.2.0", 71 crate_root: "src/bin/protoc-gen-rust.rs", 72 edition: "2021", 73 rustlibs: [ 74 "libanyhow", 75 "libonce_cell", 76 "libprotobuf", 77 "libprotobuf_codegen", 78 "libprotobuf_parse", 79 "libregex", 80 "libtempfile", 81 "libthiserror", 82 ], 83} 84