retrage/gpt-macro
ChatGPT powered Rust proc macro that generates code at compile-time.
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.
Stars
668
Forks
9
Language
Rust
License
MIT
Category
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.
Compare
Higher-rated alternatives
Arend-Jan/chat-gpt-lib-rs
A Rust library for interacting with OpenAI's ChatGPT API, providing an easy-to-use interface and...
openai-rs/openai-api
A simple Rust library for OpenAI API, free from complex async operations and redundant dependencies.
rsmeowry/chatgpt_rs
OpenAI's ChatGPT API wrapper for Rust 🦀
vibheksoni/t3router
Rust library for t3.chat API - Programmatic access to Claude, GPT-4, Gemini, and 50+ AI models....
fuyufjh/heygpt
A simple command-line interface for ChatGPT API written in Rust ⚡️