Is it possible for a proc macro that receives a proc macro as argument to run that proc macro

⚓ Rust    📅 2025-12-26    👤 surdeus    👁️ 1      

surdeus

Im not sure if stringify! macro is compiler built in, (Not going to check) but this works if inputting custom made macros (along if returns &str) works e.g stringify!(custom!())
But is it possible for ANY proc macro to run in the custom made proc macro like
custom!(a!()) or no as it receives the TokenStream rather output of the proc macro nested in

3 posts - 2 participants

Read full topic

🏷️ Rust_feed