aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp30
1 files changed, 24 insertions, 6 deletions
diff --git a/Android.bp b/Android.bp
index a698555..b0ae081 100644
--- a/Android.bp
+++ b/Android.bp
@@ -24,11 +24,17 @@ rust_library_host {
name: "libprotobuf_codegen",
crate_name: "protobuf_codegen",
cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
+ cargo_pkg_version: "3.2.0",
srcs: ["src/lib.rs"],
- edition: "2015",
+ edition: "2021",
rustlibs: [
+ "libanyhow",
+ "libonce_cell",
"libprotobuf",
+ "libprotobuf_parse",
+ "libregex",
+ "libtempfile",
+ "libthiserror",
],
product_available: true,
vendor_available: true,
@@ -38,16 +44,22 @@ rust_test_host {
name: "protobuf-codegen_test_src_lib",
crate_name: "protobuf_codegen",
cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
+ cargo_pkg_version: "3.2.0",
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
unit_test: true,
},
- edition: "2015",
+ edition: "2021",
rustlibs: [
+ "libanyhow",
+ "libonce_cell",
"libprotobuf",
+ "libprotobuf_parse",
+ "libregex",
+ "libtempfile",
+ "libthiserror",
],
}
@@ -55,12 +67,18 @@ rust_binary_host {
name: "protoc-gen-rust",
crate_name: "protoc_gen_rust",
cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
+ cargo_pkg_version: "3.2.0",
srcs: ["src/bin/protoc-gen-rust.rs"],
- edition: "2015",
+ edition: "2021",
rustlibs: [
+ "libanyhow",
+ "libonce_cell",
"libprotobuf",
"libprotobuf_codegen",
+ "libprotobuf_parse",
+ "libregex",
+ "libtempfile",
+ "libthiserror",
],
product_available: true,
vendor_available: true,