Merge "Adding autogenerated Trusty makefile rules" into main am: b196e76847

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/synstructure/+/2750939

Change-Id: I031dcc1de1b7ee24462180a1edab236a8e34b2b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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