Regenerate Android.bp by running cargo_embargo.
Also restore env!("CARGO_PKG_VERSION") to make contents match crate
archive.
Bug: http://b/339424309
Test: treehugger
Change-Id: Iaa244900732ce3a87e36e8757d9b67d54dfd2ae5
diff --git a/Android.bp b/Android.bp
index 4dfe415..f51b33a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,25 +1,16 @@
// This file is generated by cargo_embargo.
-// Do not modify this file after the first "rust_*" or "genrule" module
-// because the changes will be overridden on upgrade.
-// Content before the first "rust_*" or "genrule" module is preserved.
+// Do not modify this file because the changes will be overridden on upgrade.
package {
- default_applicable_licenses: [
- "external_rust_crates_protobuf-codegen_license",
- ],
+ default_applicable_licenses: ["external_rust_crates_protobuf-codegen_license"],
+ default_team: "trendy_team_android_rust",
}
-// Added automatically by a large-scale-change
-// See: http://go/android-license-faq
license {
name: "external_rust_crates_protobuf-codegen_license",
visibility: [":__subpackages__"],
- license_kinds: [
- "SPDX-license-identifier-MIT",
- ],
- license_text: [
- "LICENSE.txt",
- ],
+ license_kinds: ["SPDX-license-identifier-MIT"],
+ license_text: ["LICENSE"],
}
rust_library_host {
diff --git a/src/gen/file.rs b/src/gen/file.rs
index 411b069..119a8f1 100644
--- a/src/gen/file.rs
+++ b/src/gen/file.rs
@@ -54,7 +54,7 @@
let lite_runtime = customize.for_elem.lite_runtime.unwrap_or(false);
let v = CodeWriter::with(|w| {
- w.write_generated_by("rust-protobuf", "3.2.0", parser);
+ w.write_generated_by("rust-protobuf", env!("CARGO_PKG_VERSION"), parser);
w.write_line("");
w.write_line(&format!(