Adding autogenerated Trusty makefile rules am: 6641344525 am: 2aa707656e
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pkcs8/+/2753365
Change-Id: Ia9409cc7e09f82863da636823ad0890e9d58b4ac
Signed-off-by: Automerger Merge Worker <[email protected]>
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..e489493
--- /dev/null
+++ b/patches/rules.mk.diff
@@ -0,0 +1,14 @@
+diff --git b/rules.mk a/rules.mk
+index c7476cb..0257d05 100644
+--- b/rules.mk
++++ a/rules.mk
+@@ -13,9 +13,6 @@ MODULE_RUSTFLAGS += \
+
+ MODULE_LIBRARY_DEPS := \
+ external/rust/crates/der \
+- external/rust/crates/pkcs5 \
+- external/rust/crates/rand_core \
+ external/rust/crates/spki \
+- external/rust/crates/subtle \
+
+ include make/library.mk
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..0257d05
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,18 @@
+# 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 := pkcs8
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2021
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="alloc"' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/der \
+ external/rust/crates/spki \
+
+include make/library.mk