Expand description
Phase 37: Build Orchestration
Coordinates the build process for LOGOS projects.
This module handles the complete build pipeline:
- Load the project manifest (
Largo.toml) - Compile LOGOS source to Rust code
- Set up a Cargo project with runtime dependencies
- Invoke
cargo buildto 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§
- Build
Config - Configuration for a build operation.
- Build
Result - Result of a successful build operation.
- Cargo
Failure - A classified
cargo buildfailure. The full output already streamed to the terminal; this carries the verdict plus the retained tail for programmatic callers.
Enums§
- Build
Error - Errors that can occur during the build process.
- Cargo
Failure Kind - What actually went wrong when
cargo buildfailed, judged from its stderr tail.
Functions§
- build
- Build a LOGOS project.
- classify_
cargo_ failure - Judge a failed
cargo buildfrom its stderr tail. - find_
project_ root - Find the project root by walking up the directory tree.
- requires_
component_ is_ safe - Whether a
## Requirescrate name / version / feature is safe to write into the generated Cargo.toml verbatim: strictly alphanumerics plus the characters cargo specs actually use. Anything else (quotes, newlines, brackets) could smuggle TOML structure into the manifest. - run
- Execute a built LOGOS project.