vc-runtime 0.1.0

Runtime backend for Visual Compiler
Documentation
//! Backend construction layer and runtime contract.

// ============================================================
// Runtime contract (restored from original backend.rs)
// ============================================================

use crate::result::RuntimeResult;
use anyhow::Result;
use std::path::Path;
use vc_output::CompilerOutput;

#[derive(Debug, Clone)]
pub struct RuntimeInput {
    pub vc_output: CompilerOutput,
}

pub trait RuntimeBackend {
    fn execute(&self, input: &RuntimeInput, output_dir: &Path) -> Result<RuntimeResult>;
}

// ============================================================
// BuildContext (dependency container)
// ============================================================

mod context;
#[cfg(feature = "comfy-renderer")]
pub use context::ComfyContext;
pub use context::{BuildContext, BuildContextBuilder, PythonContext};

// ============================================================
// Factory & registry
// ============================================================

pub mod factory;
mod registry;
#[cfg(test)]
pub mod test_utils;

pub use factory::FactoryError;
pub use registry::build_renderer;