Registry / serialization / schemafy

schemafy

JSON →
library0.6.0rscratesunverified

Generates serializable Rust types from a JSON schema.

# Cargo.toml [dependencies] schemafy = "0.6.0"
INSTALL
IMPORT
SIG · SCHEMAFY
S
schemafy
serializationrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

schemafy
use schemafy::schemafy;

Generates Rust types from a JSON schema file using the schemafy macro.

use schemafy::schemafy; use serde::{Serialize, Deserialize}; schemafy!( root: MySchema, "path/to/schema.json" ); let instance: MySchema = serde_json::from_str("{}").unwrap();
Debug
Known issues
gotchaRequires serde and serde_json as dependencies for generated types.
fix
Add serde with derive feature and serde_json to Cargo.toml.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
schemafy — cargo add schemafy · libregistry