Expand description
Typed configuration: rig selection, per-check settings, per-clip
expectations, and typed clip groups. The TOML file (animsmith.toml) is
one constructor of this — embedding pipelines build it
programmatically through this module and keep their own contract
formats on their side.
The structs derive Deserialize so a frontend can parse any
serde-compatible format (the CLI uses TOML); the core itself never
touches a file format. crate::CheckCtx::new does not resolve
Config::rig; the embedding frontend resolves roles first through
crate::profile and passes the resulting crate::ResolvedRoles.
Structs§
- Check
Settings - Per-check settings: a severity override plus the union of the built-in checks’ tunables (only the owning check reads each field).
- Clip
Expectations - What the author declares about one clip (or a glob of clips).
- Config
- The whole configuration. Field names match the
animsmith.tomlsections. - Gait
Group - A set of clips whose gait phases must agree (a directional blend ring).
- Pinned
- A pinned expectation: declared value ± tolerance.
- RigConfig
- Rig selection: a named profile (“auto” to detect) and/or an inline role map (which wins over the profile for the roles it names).
Enums§
- Severity
Setting - Severity override for a check;
Offdisables it.
Functions§
- glob_
match - Minimal
*-wildcard matcher (no character classes;*matches any run including empty).