Expand description
High-level confique integration and generate-template rendering.
This module loads .env values, builds a Figment runtime source graph,
extracts it into a confique schema for defaults and validation, renders
example templates that mirror the same include tree, and writes JSON Schema
files that editors can use for completion and validation. YAML templates can
also be split across nested schema sections.
Re-exports§
pub use crate::config_schema::target::ConfigSchemaTarget;pub use crate::config_schema::write::config_schema_targets_for_path;pub use crate::config_schema::write::write_config_schema;pub use crate::config_schema::write::write_config_schemas;pub use crate::transparent_section::ArraySection;
Structs§
- Config
Template Target - Generated template content for one output path.
- Confique
EnvProvider - Figment provider that maps environment variables declared in
confiqueschema metadata onto their exact field paths. - Transparent
Section Context - Runtime metadata used to adapt transparent array sections during loading.
Enums§
- Config
Format - File format used when loading config files or rendering templates.
Traits§
- Config
Schema - A
confiqueschema that can expose recursive include paths and template section layout.
Functions§
- build_
config_ figment - Builds the Figment runtime source graph for a config tree.
- load_
config - Loads a complete
confiqueschema from a root config path. - load_
config_ from_ figment - Extracts and validates a config schema from a Figment source graph.
- load_
config_ with_ figment - Loads a config schema and returns the Figment graph used for runtime loading.
- template_
for_ path - Renders the default template for one path.
- template_
targets_ for_ paths - Collects all template targets that should be generated for a config tree.
- template_
targets_ for_ paths_ with_ schema - Collects template targets and binds generated templates to JSON Schemas.
- trace_
config_ sources - Emits Figment source metadata for every leaf field at TRACE level.
- write_
config_ templates - Writes all generated config templates for a config tree.
- write_
config_ templates_ with_ schema - Writes all generated config templates with editor schema bindings.
Type Aliases§
- Config
Result - Result type used by the high-level configuration API.