mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-10 18:39:51 -06:00
- brand.toml is the only place the product name lives; every crate and app
reads it through dac-brand (env vars with legacy fallback, settings folder
with copy-only migration, default library, preset extensions, i18n {app})
- cargo xtask brand check|test, run|install|package, docs, rename-crates,
deny and immich; packaging files are templates rendered from brand.toml
- icons regenerated from brand/icon.svg; upstream branding removed
- MIT licence (segment and fetch stay Apache-2.0); cargo deny licence policy
- clean-room rules in AGENTS.md/CLAUDE.md; docs/upstream-merge.md
- plan/ rebuilt and committed; parity tracker reopens Classic rows, adds
PLAN.md section 2 rows and the IMM Immich section; plan/immich.md and a
pinned Immich test server
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
27 lines
1.1 KiB
Rust
27 lines
1.1 KiB
Rust
//! Face models: what a model is ([`ModelManifest`]), whether to trust a description of one
|
|
//! ([`manifest::validate`]), the models we know by hash ([`known`]), and a probe that reads an unknown
|
|
//! `.onnx` file's input and output shapes without running it ([`onnx`]), so installing a model of your
|
|
//! own can be one drop and one licence prompt.
|
|
//!
|
|
//! Everything here treats model files and manifests as hostile input: sizes are capped, numbers must be
|
|
//! finite and sane, and a malformed file is an error, never a panic. Detection and recognition run
|
|
//! on the same checked, single-thread pure-Rust CPU interpreter.
|
|
#![forbid(unsafe_code)]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
pub mod align;
|
|
pub mod catalog;
|
|
pub mod graph;
|
|
pub mod hash;
|
|
pub mod known;
|
|
pub mod manifest;
|
|
pub mod matching;
|
|
pub mod net;
|
|
pub mod onnx;
|
|
pub mod runtime;
|
|
pub mod suggest;
|
|
pub mod synthetic;
|
|
pub mod yunet;
|
|
|
|
pub use manifest::{Colour, Commercial, InputSpec, Licence, ManifestError, ModelManifest, OutputSpec, Resize, Role, Thresholds};
|