A simple proc macro that uses ChatGPT to generate rust code at compile-time based on a prompt, and a less simple one that can inject the results of prompts directly into your editor!
#![allow(unused)]usemacro_gpt::*;structSomething;// generated by: gpt_inject!("Make a trait defining a method called `foo` that prints hello world to the console and have `Something` implement it")
traitHelloWorld{fnfoo(&self);}implHelloWorld forSomething{fnfoo(&self){println!("Hello, world!");}}// end of generated code