Expand description
.krypt.toml configuration schema and parser.
See the project README for the
full schema reference. This module defines the in-memory Rust shape of
the config (Config and friends) and a parser that turns a .krypt.toml
file or string into one of these structs.
What this module does not do (delegated to sibling modules):
include = [...]expansion →crate::include(issue #10)${VAR}path resolution →crate::paths(issue #11)
The parser here treats ${VAR} strings as opaque text. Resolving them
is a separate pass once the platform and overrides are known.
Structs§
- Command
[[command]]entry — a custom user subcommand built from step primitives.- Config
- Top-level parsed config.
- Deps
Group [[deps]]entry — one cross-distro dependency group.- Hook
[[hook]]entry — a lifecycle hook tied to a phase.- Link
[[link]]entry — a file (or glob) to deploy from the repo to a path under$HOME.- Meta
[meta]section.- Prompt
Field - A single field inside a
PromptSection. - Prompt
Section [prompts.<name>]section — an interactive wizard subsection.- Step
- One step inside a
CommandorHook. - Template
[[template]]entry — a file copied like a[[link]], but with prompt- section names that wire it tokrypt setup.
Enums§
- Config
Error - Errors that can come out of parsing or validating a
.krypt.toml.
Functions§
- parse_
file - Parse a
.krypt.tomlfrom disk. - parse_
str - Parse from an in-memory string. Useful for tests and
includeexpansion where we already have the bytes.path_hintshows up in error messages when the source isn’t an on-disk file.