modelc 0.1.0

Compile model weight files to standalone executable binaries
Documentation
use std::path::Path;

use anyhow::Result;

use crate::model::Model;
use crate::parsers::WeightParser;

pub struct OnnxParser;

impl WeightParser for OnnxParser {
    fn parse(&self, _path: &Path) -> Result<Model> {
        anyhow::bail!(
            "ONNX parsing is not implemented here (spec: \
             https://onnx.ai/onnx/intro/). \
             Export to safetensors or use the onnx format with a future parser."
        )
    }

    fn format_name(&self) -> &'static str {
        "onnx"
    }
}