Files
foxhunt/services/trading_service/Cargo.toml
jgrusewski f58d4890ff fix(services): add validation-mod ml feature to trading + backtesting
ml::validation is gated behind validation-mod, but dqn/config.rs:177
references crate::validation::RegimeMetrics unconditionally. Both
services pull in dqn::config via the trainer pipeline, so they need
the gate opened to compile. Cheaper than refactoring 700+ refs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 18:20:59 +02:00

111 lines
3.5 KiB
TOML

[package]
name = "trading-service"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
description = "Standalone Trading Service with integrated business logic"
[[bin]]
name = "trading-service"
path = "src/main.rs"
[[bin]]
name = "latency_validator"
path = "src/bin/latency_validator.rs"
[dependencies]
# Core async and utilities - USE WORKSPACE
tokio.workspace = true
anyhow.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
serde.workspace = true
serde_json.workspace = true
once_cell.workspace = true
clap.workspace = true
# gRPC and networking - USE WORKSPACE
# NOTE: Tonic 0.14 uses 'tls-ring' instead of 'tls'
# NOTE: Tonic 0.14 requires tonic-prost for generated code runtime (codec::ProstCodec)
# NOTE: prost is used by generated proto code via ::prost::Message derive
tonic = { workspace = true, features = ["transport", "server", "tls-ring", "tls-webpki-roots"] }
tonic-prost.workspace = true
tonic-health.workspace = true
prost.workspace = true
tower.workspace = true
hyper.workspace = true
http-body.workspace = true
http-body-util.workspace = true
hyper-util.workspace = true
bytes.workspace = true
# Async streams and futures - USE WORKSPACE
tokio-stream.workspace = true
futures.workspace = true
futures-util = "0.3"
async-trait.workspace = true
fastrand.workspace = true
tokio-tungstenite.workspace = true
# Performance monitoring
hdrhistogram.workspace = true
prometheus.workspace = true
axum.workspace = true
# Cryptography and security
sha2.workspace = true
x509-parser = "0.16"
reqwest = { version = "0.12", features = ["rustls-tls"], default-features = false }
base64.workspace = true
jsonwebtoken.workspace = true
chrono.workspace = true
thiserror.workspace = true
secrecy.workspace = true # Secure secret handling (still needed for other modules)
uuid.workspace = true
sqlx = { workspace = true, features = ["postgres", "chrono", "uuid", "json", "macros"] }
redis = { workspace = true, features = ["tokio-comp", "connection-manager"] }
md5.workspace = true
hostname = "0.4"
num-traits.workspace = true
rust_decimal.workspace = true
rand.workspace = true
sysinfo = "0.33"
dbn.workspace = true # DBN market data for E2E testing
# Internal workspace crates
trading_engine.workspace = true
risk.workspace = true
# 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 (ml-backtesting, ml-paper-trading, ml-stress-testing,
# ml-explainability, ml-universe, ml-regime-detection, ml-validation,
# ml-data-validation) that no source file in this service references.
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda", "validation-mod"] }
data.workspace = true
common = { workspace = true, features = ["database"] }
config = { workspace = true, features = ["postgres"] }
[build-dependencies]
# NOTE: Tonic 0.14+ uses tonic-prost-build instead of tonic-build
tonic-prost-build.workspace = true
prost-build.workspace = true
[dev-dependencies]
criterion = { workspace = true }
redis = { workspace = true, features = ["tokio-comp", "connection-manager"] }
api = { path = "../api" } # For auth tests - no cyclic dependency (api doesn't depend on trading-service)
base32 = "0.5"
serial_test = "3.0"
rand = "0.8"
[features]
default = ["minimal"] # Production default: minimal dependencies
cuda = [] # GPU features removed - use ML training service for GPU operations
gpu = ["cuda"]
minimal = []
database = []