coreml_proto
uses the .proto
files from coremltools
to generate Rust data structures and decoders using prost.
use coreml_proto::proto::{Model, ModelDescription};
use prost::Message;
fn model_description(path: &Path) -> Result<Option<ModelDescription>> {
let content = fs::read(path).await?;
let model = Model::decode(&content[..])?;
Ok(model.description)
}
brew bundle
medic doc
medic update
medic audit
medic test
medic shipit
…or more manually:
git submodule update --init
cargo build
cargo test
cargo check
cargo clippy
cargo fmt
cargo audit
This project uses protobuf definitions provided under this license. Take a look!