llm-config-templates

Crates.iollm-config-templates
lib.rsllm-config-templates
version0.5.0
created_at2025-11-21 22:10:00.197447+00
updated_at2025-11-21 22:10:00.197447+00
descriptionConfiguration template system with variable substitution, inheritance, and environment-specific overrides
homepagehttps://github.com/globalbusinessadvisors/llm-config-manager
repositoryhttps://github.com/globalbusinessadvisors/llm-config-manager
max_upload_size
id1944352
size56,005
GBA (globalbusinessadvisors)

documentation

https://docs.rs/llm-config-manager

README

llm-config-templates

Crates.io Documentation License

Configuration template system with variable substitution, inheritance, and environment-specific overrides for LLM Config Manager.

Features

  • Variable Substitution: Use ${VAR} syntax for dynamic values
  • Template Inheritance: Extend base templates with overrides
  • Environment-Specific: Different templates per environment
  • Validation: Type checking and constraint validation

Usage

[dependencies]
llm-config-templates = "0.5.0"
use llm_config_templates::TemplateEngine;

let engine = TemplateEngine::new();

// Define a template
let template = r#"
database_url = "${DB_HOST}:${DB_PORT}/${DB_NAME}"
max_connections = ${MAX_CONNS}
"#;

// Render with variables
let rendered = engine.render(template, &vars)?;

License

Licensed under the Apache License, Version 2.0.

Commit count: 0

cargo fmt