chat-gpt-lib-rs and gpt-macro
These are **complements**: the proc macro tool would likely depend on or build atop a ChatGPT library like the first one to make compile-time code generation requests to OpenAI's API.
About chat-gpt-lib-rs
Arend-Jan/chat-gpt-lib-rs
A Rust library for interacting with OpenAI's ChatGPT API, providing an easy-to-use interface and strongly typed structures.
About gpt-macro
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.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work