rstructor
v0.4.0 GrowingGet structured, validated data out of LLMs as native Rust structs and enums. Derive a type and rstructor generates the JSON Schema, prompts the model, parses the reply, and retries on validation errors โ across OpenAI, Anthropic Claude, Google Gemini, and xAI Grok. The Rust answer to Python's Pydantic + Instructor.
Quick Verdict
- โActively maintained (updated 33d ago)
- !Pre-1.0: API may have breaking changes
- โPermissive license (MIT)
Security
Deep Insights
580 downloads in the last 30 days (19/day), up 27% from the previous period.
Despite being 1+ years old, rstructor hasn't reached 1.0 yet. Expect potential API changes between versions.
Notable dependents include cmt, reasonkit-core, summera. When high-quality crates choose rstructor, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on rstructor
Version Adoption
Release Timeline
Feature Flags
default =["openai", "anthropic", "grok", "gemini", "derive", "logging"]