From 19fac4bb712b76ebc46c424ce5750ec61385cea9 Mon Sep 17 00:00:00 2001 From: wrzosik Date: Sat, 8 Nov 2025 12:34:17 +0100 Subject: added empty wsh-macros subproject --- Cargo.toml | 2 ++ wsh-macros/Cargo.toml | 7 +++++++ wsh-macros/src/lib.rs | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 Cargo.toml create mode 100644 wsh-macros/Cargo.toml create mode 100644 wsh-macros/src/lib.rs 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 +} -- cgit v1.2.3