Crate logicaffeine_cli

Crate logicaffeine_cli 

Source
Expand description

LOGOS CLI (largo)

Command-line interface for the LOGOS build system and package registry.

This crate provides the largo CLI tool for creating, building, and publishing LOGOS projects. It can be used as a library for programmatic access to the build system.

§Commands

CommandDescription
largo newCreate a new project
largo initInitialize project in current directory
largo buildCompile a LOGOS module to Rust
largo runBuild and execute a module
largo checkType-check without building
largo verifyRun Z3 static verification
largo publishPublish package to registry
largo loginAuthenticate with registry
largo logoutRemove stored credentials

§Module Structure

§Feature Flags

FeatureDescription
verificationEnable Z3 static verification (requires Z3 installed)

§Library Usage

While largo is primarily a CLI tool, the library API can be used for build system integration:

use logicaffeine_cli::project::{BuildConfig, build, find_project_root};
use std::env;

let cwd = env::current_dir().unwrap();
let root = find_project_root(&cwd).expect("Not in a LOGOS project");

let result = build(BuildConfig {
    project_dir: root,
    release: false,
})?;

println!("Built: {}", result.binary_path.display());

Re-exports§

pub use cli::run_cli;

Modules§

analysis
Re-export of analysis utilities from the compile crate.
cli
Phase 37/39: LOGOS CLI (largo)
compile
LOGOS Compilation Pipeline for CLI
interface
Re-export of the LOGOS interface types from the kernel crate.
project
Phase 36/37/39: Project Module System