rstructor

rstructor

clifton

Pydantic + Instructor for Rust: extract structured, validated data from LLMs (OpenAI GPT, Anthropic Claude, Gemini, Grok/xAI) into native Rust structs & enums. Derive macros auto-generate JSON Schema, parse responses, and retry on validation errors. Type-safe structured outputs & function calling.

29 Stars
4 Forks
1 Watchers
Rust Language
mit License
100 SrcLog Score
Cost to Build
$51.9K
Market Value
$111.5K

Growth over time

2 data points  ·  2026-07-25 → 2026-08-08
Stars Forks Watchers
💬

How do you feel about this project?

Ask AI about rstructor

Question copied to clipboard

What is the clifton/rstructor GitHub project? Description: "Pydantic + Instructor for Rust: extract structured, validated data from LLMs (OpenAI GPT, Anthropic Claude, Gemini, Grok/xAI) into native Rust structs & enums. Derive macros auto-generate JSON Schema, parse responses, and retry on validation errors. Type-safe structured outputs & function calling.". Written in Rust. Explain what it does, its main use cases, key features, and who would benefit from using it.

Question is copied to clipboard — paste it after the AI opens.

How to clone rstructor

Clone via HTTPS

git clone https://github.com/clifton/rstructor.git

Clone via SSH

[email protected]:clifton/rstructor.git

Download ZIP

Download main.zip

Found an issue?

Report bugs or request features on the rstructor issue tracker:

Open GitHub Issues