rustschemas
Rustschemas is an open-source Rust crate that provides declarative schema generation and runtime validation for Rust data structures. It is designed to bridge Rust types and schema formats such as JSON Schema and OpenAPI by deriving schema information from Rust types and exposing it as a serializable schema representation. The project emphasizes compatibility with the Serde ecosystem and aims to enable type-safe API contracts and data validation across services.
Key features include broad type support, including primitive types, structs, enums, Option and Result wrappers, and
Usage typically involves annotating a type with derive(Schema) and optionally providing attributes to refine constraints. The
As an evolving, community-driven project, rustschemas focuses on extensibility, interoperability with existing Rust tooling, and clear,