Remove dependencies declared in 5 service Cargo.toml files that no
source code in those services references (verified by grepping for
use statements). Reduces dep-graph fan-out and unnecessary recompiles.
services/api/Cargo.toml −16 deps (async-trait, bytes,
const-oid, hdrhistogram,
hex, http-body, hyper,
hyper-util, num-traits,
rust_decimal, tokio-stream,
tower-layer, tower-service,
tracing-subscriber,
trading_engine, zeroize.
+ json feature added to
reqwest since trading_engine
was enabling it transitively)
services/trading_service/Cargo.toml −11 deps
services/backtesting_service/Cargo.toml −17 deps
services/trading_agent_service/Cargo.toml −6 deps
services/ml_training_service/Cargo.toml −4 deps
False positives kept (cargo-machete misses these because they're only
referenced in tonic-generated proto code, not in hand-written src):
- prost (`::prost::Message` derive in build.rs-generated code)
- tonic-prost (`tonic_prost::ProstCodec::default()` in generated tonic
clients/servers)
cargo check --workspace passes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
backtesting_service
Strategy backtesting engine with historical data replay, performance reporting, and results persistence.
Key Types
BacktestingServiceImpl-- main gRPC serviceDataReplayEngine-- historical market data replayPerformanceReporter-- Sharpe, drawdown, win rate metrics
gRPC Endpoints
RunBacktest-- submit backtest configuration and strategyGetBacktestResults-- retrieve results for completed backtestsListAvailableStrategies-- list registered strategiesGetBacktestReport-- detailed performance report
Configuration
GRPC_PORT-- gRPC listen portDATABASE_URL-- PostgreSQL connection string- Historical data directory with Parquet tick/OHLCV files
Testing
SQLX_OFFLINE=true cargo test -p backtesting_service --lib