Skip to main content

bock_build/
lib.rs

1//! Bock build — incremental build system orchestrating the full compilation pipeline.
2//!
3//! This crate provides:
4//! - **Module dependency graph** construction from parsed AST imports
5//! - **Content hashing** (SHA-256) for change detection
6//! - **Minimal rebuild set** computation (changed modules + transitive dependents)
7//! - **Build cache** persistence in `.bock/cache/`
8//! - **Toolchain detection and invocation** for target compilation
9
10pub mod cache;
11pub mod content_hash;
12pub mod dep_graph;
13pub mod rebuild;
14pub mod repair;
15pub mod toolchain;
16
17pub use cache::{BuildCache, CacheError};
18pub use content_hash::{ContentHash, HashManifest};
19pub use dep_graph::{DepGraph, ModuleId};
20pub use rebuild::{compute_rebuild_set, ordered_rebuild_set};
21pub use repair::{
22    apply_template, try_apply_rule, RepairConfig, RepairError, RepairOutcome, RepairPipeline,
23    RuleLookupOutcome,
24};
25pub use toolchain::{
26    CompilationResult, DetectedToolchain, ToolchainError, ToolchainRegistry, ToolchainReport,
27    ToolchainSpec,
28};