diff options
| author | wrzosik <mia@miangie.dev> | 2025-11-08 12:34:17 +0100 |
|---|---|---|
| committer | wrzosik <mia@miangie.dev> | 2025-11-08 12:34:17 +0100 |
| commit | 19fac4bb712b76ebc46c424ce5750ec61385cea9 (patch) | |
| tree | ec111773df3d5735d4295ef70c397e81d3acf225 | |
| parent | 8b2441bcf7325b61aa87e92aa78cfebb00301c0c (diff) | |
| -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 +} |
