jouleclaw-omni: declare 23 modules that were compiled by nothing #314

Merged
dcharlot merged 1 commit from tidy/clippy-sweep into main 2026-10-18 13:18:54 -04:00
4 changed files with 41 additions and 24 deletions

View file

@ -67,6 +67,15 @@ pub mod tokenizer;
pub mod formats;
#[cfg(feature = "metal")]
pub mod gpu_ops;
// Declared 2026-10-17, as above.
pub mod expert_cache;
// Every `use` in fusion.rs is `#[cfg(feature = "metal")]` while the items that
// need them are not, so it only ever compiled with that feature on: gate the
// module the same way rather than leave 31 unresolved types in a default build.
#[cfg(feature = "metal")]
pub mod fusion;
pub mod gpv;
/// Model architecture implementations.
pub mod architecture {
pub mod unet;
@ -93,6 +102,29 @@ pub mod architecture {
pub mod controlnet_forward;
pub mod worldmirror_forward;
pub mod sharp;
// Declared 2026-10-17: these compiled unreferenced for want of a
// `mod` line, so nothing type-checked or linted them. Alphabetical.
pub mod bark;
pub mod canary;
pub mod chatterbox;
pub mod depth_anything;
pub mod esrgan;
pub mod fibo;
pub mod jamba;
pub mod kokoro;
pub mod mamba2;
pub mod mimo;
pub mod mochi;
pub mod moonshine;
pub mod nemotron;
pub mod parler_tts;
pub mod sam2;
pub mod sd3;
pub mod sesame_csm;
// `hal::metal` is behind the `metal` feature, so this is too.
#[cfg(feature = "metal")]
pub mod sana_wm_gpu_dispatchers_draft;
}
// Core engine

View file

@ -11,6 +11,8 @@ pub mod stream;
mod scheduler;
mod memory_manager;
pub mod monitor;
// Declared 2026-10-17, as above.
pub mod energy;
pub use executor::Executor;
pub use stream::{StreamingOutput, StreamHandle, StreamSender, StreamBuilder};

View file

@ -7,6 +7,9 @@
//! - Health checks and metrics
pub mod model_fetch;
// Declared 2026-10-17, as above.
pub mod model_library;
pub mod worker;
// `model_library` and `worker` are dev-only scaffolding; they reference
// AppState fields and crates not present in this build. Re-enable when the
// branch stabilises.

View file

@ -55,31 +55,11 @@ import sys
# a real meter with a per-rail liveness gate lives in `jouleclaw-energy`, and a
# reader who wires this one in instead gets a fabricated figure.
BASELINE = {
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/bark.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/canary.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/chatterbox.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/depth_anything.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/esrgan.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/fibo.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/jamba.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/kokoro.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/mamba2.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/mimo.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/mochi.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/moonshine.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/nemotron.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/parler_tts.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/sam2.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/sana_wm_gpu_dispatchers_draft.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/sd3.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/architecture/sesame_csm.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/expert_cache.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/fusion.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/gpv.rs",
# Wants an `ffmpeg_next` dependency it does not have
# (`extern crate ffmpeg_next` -> E0463): a system library and a licensing
# choice, so it stays undeclared until that is decided. Every other file
# that was here on 2026-10-17 is now declared and type-checked.
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/inference/video_decode.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/runtime/energy.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/server/model_library.rs",
"jouleclaw/jouleclaw-rs/crates/jouleclaw-omni/src/server/worker.rs",
}
ENTRY = {"lib", "main", "mod", "build"}