polywrap_schemafy 0.1.1

Generates serializable Rust types from a json schema
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    if cfg!(feature = "internal-regenerate") {
        let schema_path = "schemafy_lib/src/schema.json";
        polywrap_schemafy_lib::Generator::builder()
            .with_root_name_str("Schema")
            .with_input_file(schema_path)
            .build()
            .generate_to_file("schemafy_lib/src/schema.rs")
            .unwrap();
    }
}