Consolidate 4 separate ModelType enum definitions (ml 15 variants, model_loader 7, campaign 2, job_spawner 4) into a single canonical definition in common/src/model_types.rs with the union of all variants and all methods (file_extension, as_str, to_db_string, weight, from_str, Display). - ml/src/lib.rs: replace 15-variant enum with re-export - model_loader/src/lib.rs: replace 7-variant enum with re-export, update PascalCase names (Dqn->DQN, Tft->TFT, etc) - ml/hyperopt/campaign.rs: replace 2-variant enum with re-export - services/ml_training_service/job_spawner.rs: replace 4-variant enum with re-export, MAMBA2->MAMBA - Remove orphan impl ToString in ml/observability/metrics.rs (Display now provided by canonical type) - Update backtesting_service and model_loader tests for new names Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
875 B
TOML
43 lines
875 B
TOML
[package]
|
|
name = "model_loader"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
publish.workspace = true
|
|
description = "ML model loading and caching infrastructure for Foxhunt HFT system"
|
|
|
|
[dependencies]
|
|
# Internal workspace crates
|
|
storage = { path = "../storage" }
|
|
common.workspace = true
|
|
|
|
# Core workspace dependencies
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
async-trait.workspace = true
|
|
|
|
# Model versioning
|
|
semver.workspace = true
|
|
|
|
# Caching
|
|
lru = "0.12"
|
|
|
|
# Serialization
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
# Synchronization
|
|
parking_lot.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["test-util"] }
|
|
chrono.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|