aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-11-09 02:01:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-09 02:01:55 +0000
commit73d0fb483da4b0015c248b77bf189c986ae28664 (patch)
tree20dc2f1c38afa26e8c87cb092479436bea155a00
parent5d5d468fd3a616a34f28a58c77549bc195280e3f (diff)
parent1e082074bdaa6a6a76b38309fe70338bfae60be0 (diff)
downloadsynstructure-73d0fb483da4b0015c248b77bf189c986ae28664.tar.gz
Merge "Adding autogenerated Trusty makefile rules" into main am: b196e76847 am: 6bc3fedcda am: 1e082074bd
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/synstructure/+/2750939 Change-Id: I82b420e2b027379d320d5cdd3586a4f4647ec29a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--cargo2rulesmk.json3
-rw-r--r--rules.mk20
2 files changed, 23 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..62ef535
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,3 @@
+{
+ "features": "proc-macro"
+}
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..0926ba0
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,20 @@
+# 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 := synstructure
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2018
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="proc-macro"' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/proc-macro2 \
+ external/rust/crates/quote \
+ external/rust/crates/syn \
+ external/rust/crates/unicode-xid \
+
+include make/library.mk