From 69f907570bbf615f854ef8b399ecf33f4f3b2bf2 Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Thu, 15 Oct 2020 14:35:33 +0200
Subject: [PATCH] with cargo expand

---
 README.md      | 12 ++++++++++++
 expand_main.rs |  7 +++++++
 2 files changed, 19 insertions(+)
 create mode 100644 README.md
 create mode 100644 expand_main.rs

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e2c7675
--- /dev/null
+++ b/README.md
@@ -0,0 +1,12 @@
+# Proc macro example
+
+> cargo run --example main
+
+
+To see the result of macro expansion, you need `cargo-expand`.
+
+> cargo install cargo-expand
+
+Now you can run:
+
+> cargo expand --example main > expand_main.rs
diff --git a/expand_main.rs b/expand_main.rs
new file mode 100644
index 0000000..5ad12d0
--- /dev/null
+++ b/expand_main.rs
@@ -0,0 +1,7 @@
+#![feature(prelude_import)]
+#[prelude_import]
+use std::prelude::v1::*;
+#[macro_use]
+extern crate std;
+use d7050e_proc_macro::my_attribute;
+fn main() {}
-- 
GitLab