fix(services): keep cuda feature on ml dep — services were pulling

default-features which included cuda; my prior commit dropped both
default-features=false AND added only `financial`, breaking compile.

ml's source references cudarc unconditionally (cudarc::driver::CudaSlice
etc. are not behind #[cfg(feature = "cuda")]). With `cuda` feature off,
cudarc is not pulled in, leading to 722 unresolved-module errors.

Add `cuda` explicitly to the features list. The 8 leaf sub-crates
(ml-backtesting, ml-paper-trading, etc.) stay dropped — the win on
service compile time is preserved.

Real fix is to gate cudarc references in crates/ml/src/ behind
`#[cfg(feature = "cuda")]`, but that's a separate refactor.
This commit is contained in:
jgrusewski
2026-05-02 11:11:02 +02:00
parent 609c573efc
commit 6c93faa7d4
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ clap = { version = "4.5", features = ["derive"] }
# path-form: cargo 1.89's `workspace = true` ignores `default-features = false`,
# so we use the explicit path declaration to opt out of `full-stack` and drop
# 8 leaf-level ml-* sub-crates that no source file in this service references.
ml = { path = "../../crates/ml", default-features = false, features = ["financial"] }
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda"] }
data.workspace = true
common = { workspace = true, features = ["database"] }