Skip to main content

Module build

Module build 

Source
Expand description

Phase 37: Build Orchestration

Coordinates the build process for LOGOS projects.

This module handles the complete build pipeline:

  1. Load the project manifest (Largo.toml)
  2. Compile LOGOS source to Rust code
  3. Set up a Cargo project with runtime dependencies
  4. Invoke cargo build to produce the final binary

§Build Directory Structure

target/
├── debug/
│   └── build/           # Generated Cargo project (debug)
│       ├── Cargo.toml
│       ├── src/main.rs  # Generated Rust code
│       └── target/      # Cargo's output
└── release/
    └── build/           # Generated Cargo project (release)

Structs§

BuildConfig
Configuration for a build operation.
BuildResult
Result of a successful build operation.

Enums§

BuildError
Errors that can occur during the build process.

Functions§

build
Build a LOGOS project.
find_project_root
Find the project root by walking up the directory tree.
run
Execute a built LOGOS project.