aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Larsen <perlarsen@google.com>2023-11-09 00:43:02 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-09 00:43:02 +0000
commit9e3d4cab0d3b89a97d20d9c2e4b1baa2ed45c0d0 (patch)
tree906be7b1429744ad10d1ba2b9925018c1bc1090d
parent3149c91f3aef310d79810655d2107231513c84bf (diff)
parent9d8dfb75cab6e493d4fce0719e083acc59567ac9 (diff)
downloadzeroize-9e3d4cab0d3b89a97d20d9c2e4b1baa2ed45c0d0.tar.gz
Adding autogenerated Trusty makefile rules am: 9d8dfb75ca
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/zeroize/+/2753349 Change-Id: I4d402f9cf27cc52e2747424c00c56445bec41190 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.diff11
-rw-r--r--rules.mk19
3 files changed, 34 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..ffcf0ee
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,4 @@
+{
+ "features": "alloc,zeroize_derive",
+ "patch": "patches/rules.mk.diff"
+}
diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff
new file mode 100644
index 0000000..53a7732
--- /dev/null
+++ b/patches/rules.mk.diff
@@ -0,0 +1,11 @@
+diff --git b/rules.mk a/rules.mk
+index 831604e..a78891e 100644
+--- b/rules.mk
++++ a/rules.mk
+@@ -14,5 +14,6 @@ MODULE_RUSTFLAGS += \
+
+ MODULE_LIBRARY_DEPS := \
+ external/rust/crates/serde \
++ external/rust/crates/zeroize_derive \
+
+ include make/library.mk
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..a78891e
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,19 @@
+# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json.
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := zeroize
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2021
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="alloc"' \
+ --cfg 'feature="zeroize_derive"' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/serde \
+ external/rust/crates/zeroize_derive \
+
+include make/library.mk