aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Larsen <perlarsen@google.com>2023-11-09 00:42:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-09 00:42:58 +0000
commitfc53e24e2a260c0ff8bc2fe3b06aba8d0d1240dd (patch)
tree58903cf8a975deec489ba580fc0b380134ff8f72
parent7066f184e97095811a6b0b3390dff40a7353767f (diff)
parentf2e4374087856bd43b19c51b92a08f9845848a3e (diff)
downloadder-fc53e24e2a260c0ff8bc2fe3b06aba8d0d1240dd.tar.gz
Adding autogenerated Trusty makefile rules am: f2e4374087
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/der/+/2750897 Change-Id: I1bc9b7b5f0485aaa3508c151c7158b4061ab28fc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--cargo2rulesmk.json4
-rw-r--r--patches/rules.mk.diff16
-rw-r--r--rules.mk26
3 files changed, 46 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..46cd2ac
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,4 @@
+{
+ "features": "alloc,derive,flagset,oid,zeroize",
+ "patch": "patches/rules.mk.diff"
+}
diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff
new file mode 100644
index 0000000..3c0a6f6
--- /dev/null
+++ b/patches/rules.mk.diff
@@ -0,0 +1,16 @@
+diff --git b/rules.mk a/rules.mk
+index 838754b..19beb65 100644
+--- b/rules.mk
++++ a/rules.mk
+@@ -18,7 +18,9 @@ MODULE_RUSTFLAGS += \
+ --cfg 'feature="zeroize"' \
+
+ MODULE_LIBRARY_DEPS := \
+- external/rust/crates/pem-rfc7468 \
+- external/rust/crates/time \
++ external/rust/crates/const-oid \
++ external/rust/crates/der_derive \
++ external/rust/crates/flagset \
++ external/rust/crates/zeroize \
+
+ include make/library.mk
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..19beb65
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,26 @@
+# 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 := der
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2021
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="alloc"' \
+ --cfg 'feature="const-oid"' \
+ --cfg 'feature="der_derive"' \
+ --cfg 'feature="derive"' \
+ --cfg 'feature="flagset"' \
+ --cfg 'feature="oid"' \
+ --cfg 'feature="zeroize"' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/const-oid \
+ external/rust/crates/der_derive \
+ external/rust/crates/flagset \
+ external/rust/crates/zeroize \
+
+include make/library.mk