vc-runtime 0.1.0

Runtime backend for Visual Compiler
Documentation
//! Global configuration domain model.
//!
//! This module defines configuration that applies to the entire application,
//! independent of any specific backend or profile.

use serde::{Deserialize, Serialize};
use std::path::PathBuf;

/// Global configuration for the entire application.
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(default)]
pub struct GlobalConfig {
    /// Directory for caching generated artifacts (e.g., images, intermediate data).
    pub cache_dir: Option<PathBuf>,

    /// Directory for temporary files during rendering.
    pub temp_dir: Option<PathBuf>,

    /// Global log level (e.g., "info", "debug", "warn").
    pub log_level: Option<String>,
}