You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature-gate heavy DataLoader deps (arrow, parquet, hf-hub, foyer) #74
DataLoader pulls in heavy transitive dependencies:
arrow (56.1.0)
parquet (56.1.0)
hf-hub (0.4.3)
rayon (1.10.0)
foyer (0.20.0)
tempfile (3.23.0)
These are for data loading (CSV, Parquet, HuggingFace datasets) and caching — tangential to the core module/optimizer/signature architecture. Users who only need the typed prediction pipeline pay the full compile-time and binary-size cost.
Activity
darinkishore commentedon Feb 12, 2026
Codebase audit — dependency weight
Current
Cargo.tomlunconditional deps that should be gated:arrowDataLoaderparquet readingdataloaderparquetDataLoaderparquet readingdataloaderhf-hubDataLoaderHuggingFace dataset downloaddataloaderrayonserialize.rsparallel JSONL,DataLoaderdataloaderfoyerResponseCachehybrid disk cachecachetempfileResponseCachetemp dir for foyercachecsvDataLoaderCSV loadingdataloaderkdamdataloaderreqwestdataloaderFiles to gate:
data/dataloader.rs→#[cfg(feature = "dataloader")]data/serialize.rs→#[cfg(feature = "dataloader")](uses rayon, operates on untyped Example)data/utils.rs→#[cfg(feature = "dataloader")](URL detection helper)utils/cache.rs→#[cfg(feature = "cache")]pub useindata/mod.rsandlib.rs→ conditionalWhat stays unconditional:
data/example.rs— used by cache and optimizers internallydata/prediction.rs— used by cacheserde,serde_json,tokio,anyhow,bamltype,facet,rig-core,tracing— core depsProposed Cargo.toml:
Straightforward refactor, no behavioral changes for default builds.