Skip to main content

vc_output/
lib.rs

1//! Compiler output artifact.
2
3use serde::{Deserialize, Serialize};
4use vc_prompt::PromptCore;
5use vc_types::CompilerMetadata;
6
7/// Current schema version of the compiler output.
8pub const SCHEMA_VERSION: u32 = 1;
9
10/// Complete compiler output artifact.
11///
12/// This is the single source of truth for runtime backends.
13/// It contains the semantic prompt IR and the metadata needed
14/// to reproduce the compilation.
15#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
16pub struct CompilerOutput {
17    pub schema_version: u32,
18    pub prompt: PromptCore,
19    pub metadata: CompilerMetadata,
20}