Skip to main content

Module config

Module config 

Source
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§

CheckSettings
Per-check settings: a severity override plus the union of the built-in checks’ tunables (only the owning check reads each field).
ClipExpectations
What the author declares about one clip (or a glob of clips).
Config
The whole configuration. Field names match the animsmith.toml sections.
GaitGroup
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§

SeveritySetting
Severity override for a check; Off disables it.

Functions§

glob_match
Minimal *-wildcard matcher (no character classes; * matches any run including empty).