Skip to main content

logicaffeine_cli/project/
mod.rs

1//! Phase 36/37/39: Project Module System
2//!
3//! Infrastructure for managing LOGOS projects.
4//!
5//! This module provides the foundational types for working with LOGOS projects,
6//! from manifest parsing through build orchestration to registry publishing.
7//!
8//! # Submodules
9//!
10//! | Module | Purpose |
11//! |--------|---------|
12//! | [`manifest`] | Parse and serialize `Largo.toml` manifests |
13//! | [`build`][mod@build] | Compile and run LOGOS projects |
14//! | [`credentials`] | Store and retrieve API tokens |
15//! | [`registry`] | Communicate with the package registry |
16//! | [`shape`] | What a project is — the one decision every command reads |
17//!
18//! # Re-exports
19//!
20//! This module re-exports common types for convenience:
21//!
22//! - **Manifest**: [`Manifest`], [`ManifestError`]
23//! - **Build**: [`build()`], [`run`], [`find_project_root`], [`BuildConfig`], [`BuildResult`], [`BuildError`]
24//! - **Credentials**: [`Credentials`], [`get_registry_token`]
25//! - **Registry**: [`RegistryClient`], [`create_tarball`], [`is_git_dirty`]
26//!
27//! # Module Loading
28//!
29//! The [`Loader`] and [`ModuleSource`] types are re-exported from the compile
30//! crate for loading LOGOS modules from various URI schemes.
31
32// Re-export Loader from compile crate (basic file/logos: schemes)
33pub use logicaffeine_compile::loader::{Loader, ModuleSource};
34
35// CLI-specific project modules
36pub mod build;
37pub mod build_c;
38pub mod credentials;
39pub mod deps;
40pub mod manifest;
41pub mod registry;
42pub mod shape;
43
44pub use build::{
45    build, classify_cargo_failure, find_project_root, run, BuildConfig, BuildError, BuildResult,
46    CargoFailure, CargoFailureKind,
47};
48pub use credentials::{get_token as get_registry_token, Credentials};
49pub use manifest::{Manifest, ManifestError};
50pub use registry::{create_tarball, is_git_dirty, RegistryClient};