Configuration Loader and Validator (src/lib.rs)

moltis · crates/config/src/lib.rs · rust · MIT
infra, database, lang:rust, tag:config, tag:validation, tag:env-subst

Loads, validates, and migrates configuration files supporting environment variable substitution. Use it to manage application settings from TOML, YAML, or JSON sources.

// Source: https://github.com/moltis-org/moltis | License: MIT | Copyright 2025 Fabien Penso
// Provided via justclaw.it.com; keep this notice with the code.
//! Configuration loading, validation, env substitution, and legacy migration.
//!
//! Config files: `moltis.toml`, `moltis.yaml`, or `moltis.json`
//! Searched in `./` then `~/.config/moltis/`.
//!
//! Supports `${ENV_VAR}` substitution in all string values.

pub mod agent_defs;
pub mod apple_container;
pub mod bind;
pub mod container_mounts;
pub mod defaults;
pub mod env_subst;
pub mod error;
pub mod loader;
pub mod migrate;
pub mod provider_env;
pub mod schema;
pub mod template;
pub mod validate;
pub mod version;

pub use version::VERSION;

#[cfg(target_os = "macos")]
pub use apple_container::{
    apple_container_marked_unhealthy,

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key