diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-14 19:56:02 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-14 19:56:02 +0000 |
commit | 06bbfcb6cb6aae4ac78b689ddd0f3fc9be8bab8f (patch) | |
tree | 5b2692132d0123514a51e03f263ccd694adc1735 | |
parent | 7f0d258359435bb8dbcf44b187beadf4dafd50fa (diff) | |
parent | bb43521003d51b97ac86a9f7b9adbcaeb6e1c8b4 (diff) | |
download | proc-macro2-06bbfcb6cb6aae4ac78b689ddd0f3fc9be8bab8f.tar.gz |
Snap for 11096816 from bb43521003d51b97ac86a9f7b9adbcaeb6e1c8b4 to build-tools-release
Change-Id: Ia2c323513fc2b44ee106f9fdf2694aeeca58f8b2
-rw-r--r-- | cargo2rulesmk.json | 3 | ||||
-rw-r--r-- | rules.mk | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json new file mode 100644 index 0000000..99d0b4b --- /dev/null +++ b/cargo2rulesmk.json @@ -0,0 +1,3 @@ +{ + "features": "default,span-locations" +}
\ No newline at end of file diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..39075a8 --- /dev/null +++ b/rules.mk @@ -0,0 +1,22 @@ +# 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_macro2 +MODULE_SRCS := \ + $(LOCAL_DIR)/src/lib.rs \ + +MODULE_RUST_EDITION := 2021 +MODULE_RUSTFLAGS += \ + --cfg 'feature="default"' \ + --cfg 'feature="proc-macro"' \ + --cfg 'feature="span-locations"' \ + --cfg 'proc_macro_span' \ + --cfg 'span_locations' \ + --cfg 'wrap_proc_macro' \ + +MODULE_LIBRARY_DEPS := \ + external/rust/crates/unicode-ident \ + +include make/library.mk |