rustio rustio.net
57

rstructor

v0.6.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 65d ago)
  • !Pre-1.0: API may have breaking changes
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
8.9K
Dependents
14
Releases
31
Size
229KB

Deep Insights

๐Ÿ“‰
Download decline

997 downloads in the last 30 days, down 66% from the previous period. May indicate migration to alternatives.

๐Ÿ”ฌ
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 15/25

Recency, release consistency, active ratio

Quality 15/25

Yanked ratio, deps, size, maturity, features

Community 9/20

Reverse deps, ownership, ecosystem

Popularity 5/15

Downloads, momentum, growth trend

Documentation 13/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
0/day avg
08/229/99/2710/1511/211/19

Top Dependents

Most downloaded crates that depend on rstructor

Version Adoption

v0.6.0
46%
v0.2.9
24%
v0.4.0
19%
v0.2.11
5%
v0.3.1
5%

Release Timeline

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

Feature Flags

default =["derive", "all-providers"]

grokmocktoolsderive*geminiopenai_clientloggingschemarsanthropicstreamingall-providers*

README

Loading README...

Maintainers

Dependencies
20
direct dependencies
Dependents
14
crates depend on rstructor

Similar Crates