summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp6
-rw-r--r--rules.mk17
2 files changed, 21 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 4f3f880..bf434bc 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,7 @@
// This file is generated by cargo_embargo.
-// Do not modify this file as changes will be overridden on upgrade.
+// Do not modify this file after the first "rust_*" or "genrule" module
+// because the changes will be overridden on upgrade.
+// Content before the first "rust_*" or "genrule" module is preserved.
package {
default_applicable_licenses: [
@@ -25,7 +27,7 @@ rust_proc_macro {
crate_name: "zerocopy_derive",
cargo_env_compat: true,
cargo_pkg_version: "0.7.29",
- srcs: ["src/lib.rs"],
+ crate_root: "src/lib.rs",
edition: "2018",
rustlibs: [
"libproc_macro2",
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..de34983
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,17 @@
+# This file is generated by cargo2rulesmk.py --run.
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := zerocopy_derive
+MODULE_RUST_CRATE_TYPES := proc-macro
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2018
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/proc-macro2 \
+ external/rust/crates/quote \
+ external/rust/crates/syn \
+
+include make/library.mk