Expand description
Project configuration (spec.toml).
Re-exports§
pub use reader::Config;pub use types::AuditSection;pub use types::GuardDef;pub use types::OwnerKind;pub use types::PluginDef;pub use types::RawConfig;pub use types::RegexRule;pub use types::RegexSpec;pub use types::StoreDef;
Modules§
- defaults
- Default values for spec.toml, kept apart so the schema reads as data.
- paths
- Locations on the user’s machine: home, cache, and
~expansion. - reader
- Finds and loads spec.toml, and answers questions about the loaded configuration.
- starter
- The spec.toml
spec initwrites for a new project. - types
- The shape of spec.toml, one module per section. Everything project-specific lives here; the code only knows the kinds of rules.
- upgrade
- Upgrading an older spec.toml in place: renamed keys and the schema number.
- validate
- C237: patterns in spec.toml are checked when the file loads. A regex or glob that does not compile used to be dropped where it was used, so the setting silently did nothing.