Upgrade protobuf-codegen to 3.2.0
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update rust/crates/protobuf-codegen
For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md
Bug: 270895633
Test: TreeHugger
Change-Id: I7d1c61acd4a3c215219ef9f30647678480cb8a22
diff --git a/Android.bp b/Android.bp
index a698555..b0ae081 100644
--- a/Android.bp
+++ b/Android.bp
@@ -24,11 +24,17 @@
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 @@
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 @@
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,