Skip to main content

Crate rust_config_tree

Crate rust_config_tree 

Source
Expand description

Configuration-tree loading and CLI helpers for layered config files.

The high-level API loads confique schemas directly, while the lower-level tree traversal helpers remain available for custom loaders.

Use config::ConfigSchema with a confique::Config type when your schema owns an include field. Use config::load_config to load the root config, all recursive includes, .env values, and schema-declared environment values into the final schema. Use config::build_config_figment or config::load_config_with_figment when you need runtime source tracking. Use config::write_config_templates or cli::ConfigCommand to generate example template files that mirror the same include tree. Use config::write_config_schemas to generate root and section JSON Schemas for editor completion and validation. Use cli::install_shell_completion and cli::uninstall_shell_completion for reusable shell completion lifecycle commands.

Modules§

cli
Clap subcommand integration and shell completion installation helpers.
config
High-level confique integration and generate-template rendering.
config_schema
JSON Schema generation and section-schema splitting.
error
Error types shared by the tree loader and high-level config API.
path
Lexical path normalization and include path resolution.
template_tree
Low-level template target discovery.
transparent_section
Transparent array section wrappers for split-friendly configuration.
tree
Recursive include tree traversal primitives.

Macros§

transparent_array_section
Generates a transparent array section wrapper with confique support.