Cleanup license metadata in external/rust/crates/bincode.
Add package and license module in Android.bp. Symlink file LICENSE is added in Android codebase and points to file LICENSE.md, so use it in Android.bp.
Bug: 346390141
Test: CIs
Change-Id: I7743853e72f0f05ba20d6dab366556d40ae8e5ac
diff --git a/Android.bp b/Android.bp
index 588c50a..b73b32b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,7 +3,21 @@
// because the changes will be overridden on upgrade.
// Content before the first "rust_*" or "genrule" module is preserved.
-// TODO: Add license.
+package {
+ default_applicable_licenses: ["external_rust_crates_bincode_license"],
+}
+
+license {
+ name: "external_rust_crates_bincode_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-MIT",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
rust_library {
name: "libbincode",
host_supported: true,