Skip to main content

Module models

Module models 

Source
Expand description

Model registry — manifest-driven downloads with SHA-256 verification.

Re-exports§

pub use download::DownloadError;
pub use download::download_with_checksum;
pub use download::download_with_checksum_and_signature;
pub use download::verify_sha256;
pub use manifest::Manifest;
pub use manifest::ManifestError;
pub use manifest::ModelEntry;
pub use manifest::ProfileEntry;
pub use manifest::SCHEMA_V1;

Modules§

download
HTTP download with streamed SHA-256 and optional Minisign verification.
manifest
TOML manifest describing where each ONNX model lives, its checksum, and which model each Profile resolves to.
verify
Minisign signature verification for model artifacts.

Structs§

ModelRegistry
A model registry: holds a manifest + a cache directory, and downloads/verifies models on demand.
ProfileModels
Resolved file paths for the segmenter and embedder of a profile.

Enums§

RegistryError
Errors from ModelRegistry operations.

Constants§

DEFAULT_MANIFEST_TOML
The default manifest shipped with the crate. Embedded at compile time.

Functions§

default_manifest
{ true } pub fn default_manifest() -> Manifest { true } Parse the bundled default manifest. Panics in debug if the embedded TOML is malformed — that’s a static asset bug caught by cargo test.