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_grpcio-compiler_license", 9 ], 10} 11 12// Added automatically by a large-scale-change that took the approach of 13// 'apply every license found to every target'. While this makes sure we respect 14// every license restriction, it may not be entirely correct. 15// 16// e.g. GPL in an MIT project might only apply to the contrib/ directory. 17// 18// Please consider splitting the single license below into multiple licenses, 19// taking care not to lose any license_kind information, and overriding the 20// default license using the 'licenses: [...]' property on targets as needed. 21// 22// For unused files, consider creating a 'fileGroup' with "//visibility:private" 23// to attach the license to, and including a comment whether the files may be 24// used in the current project. 25// See: http://go/android-license-faq 26license { 27 name: "external_rust_crates_grpcio-compiler_license", 28 visibility: [":__subpackages__"], 29 license_kinds: [ 30 "SPDX-license-identifier-Apache-2.0", 31 "SPDX-license-identifier-MIT", 32 ], 33 license_text: [ 34 "LICENSE", 35 ], 36} 37 38rust_binary_host { 39 name: "grpc_rust_plugin", 40 crate_name: "grpc_rust_plugin", 41 cargo_env_compat: true, 42 cargo_pkg_version: "0.12.1", 43 crate_root: "src/bin/grpc_rust_plugin.rs", 44 edition: "2018", 45 features: [ 46 "default", 47 "protobuf", 48 "protobuf-codec", 49 ], 50 rustlibs: [ 51 "libgrpcio_compiler", 52 "libprotobuf_deprecated", 53 ], 54} 55 56rust_test_host { 57 name: "grpcio-compiler_test_src_lib", 58 crate_name: "grpcio_compiler", 59 cargo_env_compat: true, 60 cargo_pkg_version: "0.12.1", 61 crate_root: "src/lib.rs", 62 test_suites: ["general-tests"], 63 auto_gen_config: true, 64 test_options: { 65 unit_test: true, 66 }, 67 edition: "2018", 68 features: [ 69 "default", 70 "protobuf", 71 "protobuf-codec", 72 ], 73 rustlibs: ["libprotobuf_deprecated"], 74} 75 76rust_library_host { 77 name: "libgrpcio_compiler", 78 crate_name: "grpcio_compiler", 79 cargo_env_compat: true, 80 cargo_pkg_version: "0.12.1", 81 crate_root: "src/lib.rs", 82 edition: "2018", 83 features: [ 84 "default", 85 "protobuf", 86 "protobuf-codec", 87 ], 88 rustlibs: ["libprotobuf_deprecated"], 89} 90