Snap for 11078623 from b6cea772b4744e3dd2974da954a5d4182347e043 to 24Q1-release

Change-Id: Ib2badbc3fb3608e1e26b446e24cf29566917f33c
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..4243146
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,4 @@
+{
+  "features": "alloc",
+  "patch": "patches/rules.mk.diff"
+}
diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff
new file mode 100644
index 0000000..13eac9e
--- /dev/null
+++ b/patches/rules.mk.diff
@@ -0,0 +1,13 @@
+diff --git b/rules.mk a/rules.mk
+index 25bd083..bd3edb9 100644
+--- b/rules.mk
++++ a/rules.mk
+@@ -12,8 +12,6 @@ MODULE_RUSTFLAGS += \
+ 	--cfg 'feature="alloc"' \
+ 
+ MODULE_LIBRARY_DEPS := \
+-	external/rust/crates/base64ct \
+ 	external/rust/crates/der \
+-	external/rust/crates/sha2 \
+ 
+ include make/library.mk
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..bd3edb9
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,17 @@
+# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json --features .
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := spki
+MODULE_SRCS := \
+	$(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2021
+MODULE_RUSTFLAGS += \
+	--cfg 'feature="alloc"' \
+
+MODULE_LIBRARY_DEPS := \
+	external/rust/crates/der \
+
+include make/library.mk