coreml-proto 0.1.0

CoreML protobuf definitions and decoders
Documentation
  • Coverage
  • 60.36%
    1273 out of 2109 items documented77 out of 495 items with examples
  • Size
  • Source code size: 435.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 36.27 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 54s Average build duration of successful builds.
  • all releases: 54s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • synchronal/coreml-proto
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sax github:synchronal:crates

CoreML Proto

coreml_proto uses the .proto files from coremltools to generate Rust data structures and decoders using prost.

Usage

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)
}

Development

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

Licensing

This project uses protobuf definitions provided under this license. Take a look!