diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-22 00:10:07 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-22 00:10:07 +0000 |
commit | de9d81f9f40944b46ac4bf561255dd1b68b33b2f (patch) | |
tree | 9f27fcf3497ae40a580dbac126708d035a14a4aa | |
parent | 0b0e1762266e27fbd02b546f0f3613884684d4d0 (diff) | |
parent | f78d645463257895749f7e976f7673b352d9c431 (diff) | |
download | grpcio-compiler-de9d81f9f40944b46ac4bf561255dd1b68b33b2f.tar.gz |
Snap for 11130662 from f78d645463257895749f7e976f7673b352d9c431 to sdk-release
Change-Id: I84b3ad1106575fce4eea13ed7613d4e1e0075075
-rw-r--r-- | Android.bp | 26 | ||||
-rw-r--r-- | cargo2android.json | 8 | ||||
-rw-r--r-- | cargo_embargo.json | 11 |
3 files changed, 33 insertions, 12 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --config cargo2android.json. +// This file is generated by cargo_embargo. // Do not modify this file as changes will be overridden on upgrade. package { @@ -51,6 +51,26 @@ rust_binary_host { ], } +rust_test_host { + name: "grpcio-compiler_test_src_lib", + crate_name: "grpcio_compiler", + cargo_env_compat: true, + cargo_pkg_version: "0.12.1", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2018", + features: [ + "default", + "protobuf", + "protobuf-codec", + ], + rustlibs: ["libprotobuf_deprecated"], +} + rust_library_host { name: "libgrpcio_compiler", crate_name: "grpcio_compiler", @@ -63,7 +83,5 @@ rust_library_host { "protobuf", "protobuf-codec", ], - rustlibs: [ - "libprotobuf_deprecated", - ], + rustlibs: ["libprotobuf_deprecated"], } diff --git a/cargo2android.json b/cargo2android.json deleted file mode 100644 index fe5cae7..0000000 --- a/cargo2android.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "dependencies": true, - "run": true, - "tests": true, - "dep-suffixes": { - "protobuf": "_deprecated" - } -} diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..d5ca5c7 --- /dev/null +++ b/cargo_embargo.json @@ -0,0 +1,11 @@ +{ + "module_name_overrides": { + "libprotobuf": "libprotobuf_deprecated" + }, + "package": { + "grpcio-compiler": { + "device_supported": false + } + }, + "tests": true +} |