rustio rustio.net
58

rstructor

v0.4.0 Growing

Get 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.

MIT Edition 2024
API bindingsAsynchronousParsing toolsScienceText processing #json-schema#openai#llm#anthropic#structured-output

Quick Verdict

  • โœ“Actively maintained (updated 33d ago)
  • !Pre-1.0: API may have breaking changes
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
4.6K
Dependents
14
Releases
28
Size
222KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

580 downloads in the last 30 days (19/day), up 27% from the previous period.

๐Ÿ”ฌ
Pre-1.0 for over a year

Despite being 1+ years old, rstructor hasn't reached 1.0 yet. Expect potential API changes between versions.

๐ŸŒŸ
Used by top crates

Notable dependents include cmt, reasonkit-core, summera. When high-quality crates choose rstructor, it's a strong quality signal.

Health Breakdown

Maintenance 17/25

Recency, release consistency, active ratio

Quality 15/25

Yanked ratio, deps, size, maturity, features

Community 9/20

Reverse deps, ownership, ecosystem

Popularity 4/15

Downloads, momentum, growth trend

Documentation 13/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
0/day avg
04/275/156/26/207/87/25

Top Dependents

Most downloaded crates that depend on rstructor

Version Adoption

v0.2.9
48%
v0.2.7
19%
v0.3.1
14%
v0.4.0
10%
v0.2.10
8%

Release Timeline

10 releasessince 2025
J
F
M
A
M
J
J
A
S
O
N
D
2025
2
2026
8
Less
More

Feature Flags

default =["openai", "anthropic", "grok", "gemini", "derive", "logging"]

grok*mocktoolsderive*gemini*openai*_clientlogging*anthropic*streaming

README

Loading README...

Maintainers

Dependencies
16
direct dependencies
Dependents
14
crates depend on rstructor

Similar Crates