Snap for 11227258 from 894d6ced8fe0e14fd3867562e978fadec89ad94e to 24Q2-release

Change-Id: I4bb3687d6b2df64ff52512a3628628c19479baf6
diff --git a/Android.bp b/Android.bp
index e7f5dbe..ef12cc4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
 // Do not modify this file as changes will be overridden on upgrade.
 
 package {
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index cd14e87..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "apex-available": [
-    "//apex_available:platform",
-    "com.android.virt"
-  ],
-  "device": true,
-  "features": "std,clock,serde",
-  "run": true
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..64c53eb
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,12 @@
+{
+  "apex_available": [
+    "//apex_available:platform",
+    "com.android.virt"
+  ],
+  "features": [
+    "std",
+    "clock",
+    "serde"
+  ],
+  "run_cargo": false
+}
diff --git a/src/lib.rs b/src/lib.rs
index 9d66ae3..e2608d3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -414,7 +414,6 @@
 #![cfg_attr(feature = "bench", feature(test))] // lib stability features as per RFC #507
 #![deny(missing_docs)]
 #![deny(missing_debug_implementations)]
-#![deny(dead_code)]
 // lints are added all the time, we test on 1.13
 #![allow(unknown_lints)]
 #![cfg_attr(not(any(feature = "std", test)), no_std)]