diff options
Diffstat (limited to 'wsh-macros')
| -rw-r--r-- | wsh-macros/Cargo.toml | 7 | ||||
| -rw-r--r-- | wsh-macros/src/lib.rs | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/wsh-macros/Cargo.toml b/wsh-macros/Cargo.toml new file mode 100644 index 0000000..f1ee07a --- /dev/null +++ b/wsh-macros/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "wsh-macros" +version = "0.1.0" +edition = "2024" + +[lib] +proc-macro = true diff --git a/wsh-macros/src/lib.rs b/wsh-macros/src/lib.rs new file mode 100644 index 0000000..543c272 --- /dev/null +++ b/wsh-macros/src/lib.rs @@ -0,0 +1,8 @@ +use proc_macro::TokenStream; + +#[proc_macro_attribute] +pub fn action(attr: TokenStream, item: TokenStream) -> TokenStream { + println!("attr: {:?}", attr); + println!("item: {:?}", item); + item +} |
