Use cargo_embargo to update Android.bp and rules.mk
Bug: 358302178
Test: ran cargo_embargo
Change-Id: If51a65b303c520d31116c721351ab98d1d8d2544
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..a9ed02a
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+// This file is generated by cargo_embargo.
+// Do not modify this file because the changes will be overridden on upgrade.
+
+package {
+ default_applicable_licenses: ["external_rust_crates_bit_field_license"],
+ default_team: "trendy_team_android_rust",
+}
+
+license {
+ name: "external_rust_crates_bit_field_license",
+ visibility: [":__subpackages__"],
+ license_kinds: ["SPDX-license-identifier-Apache-2.0"],
+ license_text: ["LICENSE"],
+}
+
+dirgroup {
+ name: "trusty_dirgroup_external_rust_crates_bit_field",
+ visibility: ["//trusty/vendor/google/aosp/scripts"],
+ dirs: ["."],
+}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..1a14fb6
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,5 @@
+{
+ "run_cargo": false,
+ "generate_androidbp": false,
+ "generate_rulesmk": true
+}
diff --git a/rules.mk b/rules.mk
index 6ed6181..d6b0375 100644
--- a/rules.mk
+++ b/rules.mk
@@ -1,11 +1,15 @@
-# This file is generated by cargo2rulesmk.py --run.
-# Do not modify this file as changes will be overridden on upgrade.
+# This file is generated by cargo_embargo.
+# Do not modify this file after the LOCAL_DIR line
+# because the changes will be overridden on upgrade.
+# Content before the first line starting with LOCAL_DIR is preserved.
LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_CRATE_NAME := bit_field
-MODULE_SRCS := \
- $(LOCAL_DIR)/src/lib.rs \
-
+MODULE_RUST_CRATE_TYPES := rlib
+MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs
MODULE_RUST_EDITION := 2015
+MODULE_LIBRARY_DEPS := \
+
+
include make/library.mk