diff options
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | wsh-macros/Cargo.toml | 7 | ||||
| -rw-r--r-- | wsh-macros/src/lib.rs | 8 |
3 files changed, 17 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..6e468c2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = [ "wsh-macros", "wshortcuts" ] 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 +} |
