encoderfile 0.6.2

Distribute and run transformer encoders with a single file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anyhow::Result;
use encoderfile::builder::config;

fn main() -> Result<()> {
    let schema = schemars::schema_for!(config::BuildConfig);

    let schema_str = serde_json::to_string_pretty(&schema)?;

    let out_path = std::path::PathBuf::from("schemas").join("encoderfile-config-schema.json");

    std::fs::write(out_path, schema_str)?;

    Ok(())
}