summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-17 00:11:46 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-17 00:11:46 +0000
commitcd508a0a5806d3425a59d56d18d6e7dd25f5c4de (patch)
tree9f27fcf3497ae40a580dbac126708d035a14a4aa
parentfd91f26239585f46a866e8c907eca7e8734df80c (diff)
parentf45d5f1c8b428b5d7e0ca6c78b98f41a5f26611f (diff)
downloadgrpcio-compiler-android14-qpr2-release.tar.gz
Change-Id: I8c22b4c89c7d3a9661c86801abd983e388f17a41
-rw-r--r--Android.bp26
-rw-r--r--cargo2android.json8
-rw-r--r--cargo_embargo.json11
3 files changed, 33 insertions, 12 deletions
diff --git a/Android.bp b/Android.bp
index 3b8f2de..576d217 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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
+}