diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-10 00:12:55 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-10 00:12:55 +0000 |
commit | 4a406c0a964832f7beeca03cfe3b348314b544a0 (patch) | |
tree | 81152415379a6925d196c06c6d060cc6087aac46 | |
parent | 4c688882456aabc59f0be1e87fb3a9a07f5b6c16 (diff) | |
parent | ff2c10a4012da6450fb40ff6687d09198cf8f4ae (diff) | |
download | proc-macro-error-4a406c0a964832f7beeca03cfe3b348314b544a0.tar.gz |
Snap for 11078623 from ff2c10a4012da6450fb40ff6687d09198cf8f4ae to 24Q1-release
Change-Id: Ib99910a1bd9842fc7504312a7c27fc81d60e25ca
-rw-r--r-- | cargo2rulesmk.json | 3 | ||||
-rw-r--r-- | patches/rules.mk.diff | 11 | ||||
-rw-r--r-- | rules.mk | 23 |
3 files changed, 37 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json new file mode 100644 index 0000000..01f7467 --- /dev/null +++ b/cargo2rulesmk.json @@ -0,0 +1,3 @@ +{ + "patch": "patches/rules.mk.diff" +} diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff new file mode 100644 index 0000000..dfe4a6d --- /dev/null +++ b/patches/rules.mk.diff @@ -0,0 +1,11 @@ +diff --git a/rules.mk b/rules.mk +index 4f4804c..ff3d072 100644 +--- a/rules.mk ++++ b/rules.mk +@@ -18,5 +18,6 @@ MODULE_LIBRARY_DEPS := \ + external/rust/crates/proc-macro-error-attr \ + external/rust/crates/proc-macro2 \ + external/rust/crates/quote \ ++ external/rust/crates/syn \ + + include make/library.mk diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..7bc8377 --- /dev/null +++ b/rules.mk @@ -0,0 +1,23 @@ +# 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 := proc_macro_error +MODULE_SRCS := \ + $(LOCAL_DIR)/src/lib.rs \ + +MODULE_RUST_EDITION := 2018 +MODULE_RUSTFLAGS += \ + --cfg 'feature="default"' \ + --cfg 'feature="syn"' \ + --cfg 'feature="syn-error"' \ + --cfg 'skip_ui_tests' \ + +MODULE_LIBRARY_DEPS := \ + external/rust/crates/proc-macro-error-attr \ + external/rust/crates/proc-macro2 \ + external/rust/crates/quote \ + external/rust/crates/syn \ + +include make/library.mk |