Substrate-driven curation, third pass. After ad21b2d (scanner
fix) recovered most of omni's attributed-declaration docs (34 →
13), the residual 13 were all on functions / modules without
any attribute interference. Closing them.
PER-FILE BREAKDOWN
src/weight_store/metrics.rs StoreMetrics::new and the 10
counter + accessor methods
(record_access / record_hot_hit /
record_warm_hit / record_cold_hit /
increment_tensors / total_tensors /
total_accesses / hot_hits /
warm_hits / cold_hits).
src/inference/architecture/sana_wm_gpu_dispatchers_draft.rs
Module head — converted `//` line
comments to `//!` so the substrate
sees the existing prose as
module-level documentation.
Behaviour unchanged.
build.rs Added a `//!` header explaining
the macOS Accelerate linkage.
Module-level documentation only.
ONLY DOC COMMENTS + COMMENT-STYLE CONVERSIONS — NO BEHAVIOUR CHANGE
BEFORE / AFTER
Public-surface missing reasons: 106 → 93 (delta = 13).
jouleclaw-omni specifically: 13 → 0 (dropped off the
top-of-list).
Documented modules: 675 → 677 (the two `//!` head
conversions).
New top: jouleclaw-schema (9). Substrate audit cycle still holds
— it flags, we close, it confirms.
cargo check --workspace --all-targets clean.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
16 lines
603 B
Rust
16 lines
603 B
Rust
//! Build script for jouleclaw-omni.
|
|
//!
|
|
//! Configures platform-specific native dependencies — Apple
|
|
//! Accelerate on macOS (for AMX-accelerated BLAS via
|
|
//! `cblas_sgemm`), platform-conditional linker flags
|
|
//! elsewhere. Runs at compile time only; not part of the
|
|
//! crate's public Rust surface.
|
|
|
|
fn main() {
|
|
// Link Apple Accelerate framework on macOS for AMX-accelerated BLAS (cblas_sgemm).
|
|
// This gives ~10x speedup over naive matmul for any remaining CPU matrix operations.
|
|
#[cfg(target_os = "macos")]
|
|
{
|
|
println!("cargo:rustc-link-lib=framework=Accelerate");
|
|
}
|
|
}
|