[Media] I made a cursed proc_macro for AI rust programming

926 points GerGomrs 83 comments
[Media] I made a cursed proc_macro for AI rust programming

I had a silly idea to generate AI code using procedural macros in extern blocks.

I thought this syntax looked fun, but also a bit cursed and dangerous in a way. I had some fun to inspect the outputs with cargo-expand.

Code: https://github.com/germangb/ai-bindgen