This commit is contained in:
nora 2025-10-17 22:21:28 +02:00
commit 93553d8aae
10 changed files with 218 additions and 0 deletions

1
proc-macro-thing/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

View file

@ -0,0 +1,7 @@
[package]
name = "proc-macro-thing"
version = "0.1.0"
edition = "2024"
[lib]
proc-macro = true

View file

@ -0,0 +1,6 @@
use proc_macro::TokenStream;
#[proc_macro_derive(MyMacro, attributes(helper))]
pub fn hello(_: TokenStream) -> TokenStream {
"".parse().unwrap()
}