Skip to main content

logicaffeine_cli/
compile.rs

1//! LOGOS Compilation Pipeline for CLI
2//!
3//! Re-exports the compilation API from [`logicaffeine_compile`].
4//!
5//! This module provides access to the core compilation functions without
6//! requiring a direct dependency on the compile crate. The key export is
7//! [`compile_project`], which transforms LOGOS source into Rust code.
8//!
9//! # Architecture
10//!
11//! The compilation pipeline is implemented in the `logicaffeine_compile` crate.
12//! This module simply re-exports those types for convenience within the CLI.
13//!
14//! # Example
15//!
16//! ```no_run
17//! use std::path::Path;
18//! use logicaffeine_cli::compile::compile_project;
19//!
20//! let rust_code = compile_project(Path::new("src/main.lg"))?;
21//! println!("Generated {} bytes of Rust", rust_code.rust_code.len());
22//! # Ok::<(), Box<dyn std::error::Error>>(())
23//! ```
24
25// Re-export compile functions and types from the compile crate
26pub use logicaffeine_compile::compile::*;