Skip to main content

Module include

Module include 

Source
Expand description

#include directive — glob-based config composition.

The include field in a .krypt.toml lists glob patterns (relative to the file’s directory) that name additional config files to merge in. This module performs that expansion, merges the resulting configs, and returns a single flattened Config.

Entry points:

  • load_with_includes — read a root file and fully expand it.
  • expand_includes — expand an already-parsed Config given its directory. Useful when the caller has already parsed the root itself.

Enums§

IncludeError
Errors that can arise during include expansion.

Functions§

expand_includes
Expand the include list in an already-parsed cfg, resolving patterns relative to base_dir.
load_with_includes
Parse path from disk and fully expand its include directives.