Skip to main content

Module config

Module config 

Source
Expand description

Typed configuration: rig selection, per-check settings, per-clip expectations and movement ownership, 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).
RuntimeNodeSelectors
Normalized, deterministic runtime-node selection authority.
RuntimeNodesConfig
Engine-neutral runtime-node selection policy.
SyncGroup
A set of clips sampled together by a same-time / absolute-sync runtime.
TimeComplementSettings
Thresholds for detecting a pair that is more phase-similar under reflected time than under a declared same-time / absolute-sync rule.

Enums§

ConfigValidationError
Invalid values in a directly constructed Config.
MovementOwner
The system that owns one component of a clip’s world movement.
RuntimeNodeSelectorResolution
One runtime-node selector’s deterministic resolution result.
SeveritySetting
Severity override for a check; Off disables it.

Functions§

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