Skip to main content

vc_runtime/backend/
mod.rs

1//! Backend construction layer and runtime contract.
2
3// ============================================================
4// Runtime contract (restored from original backend.rs)
5// ============================================================
6
7use crate::result::RuntimeResult;
8use anyhow::Result;
9use std::path::Path;
10use vc_output::CompilerOutput;
11
12#[derive(Debug, Clone)]
13pub struct RuntimeInput {
14    pub vc_output: CompilerOutput,
15}
16
17pub trait RuntimeBackend {
18    fn execute(&self, input: &RuntimeInput, output_dir: &Path) -> Result<RuntimeResult>;
19}
20
21// ============================================================
22// BuildContext (dependency container)
23// ============================================================
24
25mod context;
26#[cfg(feature = "comfy-renderer")]
27pub use context::ComfyContext;
28pub use context::{BuildContext, BuildContextBuilder, PythonContext};
29
30// ============================================================
31// Factory & registry
32// ============================================================
33
34pub mod factory;
35mod registry;
36#[cfg(test)]
37pub mod test_utils;
38
39pub use factory::FactoryError;
40pub use registry::build_renderer;