retrage/gpt-macro

ChatGPT powered Rust proc macro that generates code at compile-time.

47
/ 100
Emerging

Provides `auto_impl!{}` macro that accepts natural language prompts alongside incomplete function signatures, querying the OpenAI API to generate implementations at compile-time, and `#[auto_test]` attribute macro for auto-generating test cases. The macro parses prompts and stub code, sends them to ChatGPT, extracts Rust code from responses, and substitutes the implementation before compilation proceeds normally.

668 stars. Actively maintained with 2 commits in the last 30 days.

No Package No Dependents
Maintenance 13 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 8 / 25

How are scores calculated?

Stars

668

Forks

9

Language

Rust

License

MIT

Last pushed

Feb 23, 2026

Commits (30d)

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/retrage/gpt-macro"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.