pub fn build(config: BuildConfig) -> Result<BuildResult, BuildError>Expand description
Build a LOGOS project.
Compiles the project specified in config through the full build pipeline:
- Load and validate the manifest
- Compile LOGOS source to Rust
- Generate a Cargo project with runtime dependencies
- Run
cargo build
The entry point is determined from the manifest’s package.entry field,
with a .md extension fallback if the .lg file doesn’t exist.
§Errors
Returns an error if:
- The manifest cannot be loaded
- The entry point file doesn’t exist
- LOGOS compilation fails
- Cargo build fails