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>
72 lines
2.1 KiB
TOML
72 lines
2.1 KiB
TOML
[package]
|
|
name = "trading-agent-service"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
description = "Trading Agent Service - Portfolio management with universe selection, asset selection, and order generation"
|
|
|
|
[[bin]]
|
|
name = "trading-agent-service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Core async and utilities
|
|
tokio.workspace = true
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
once_cell.workspace = true
|
|
|
|
# gRPC and networking
|
|
# NOTE: tonic-prost & prost used by generated proto code (ProstCodec, ::prost::Message)
|
|
tonic = { workspace = true, features = ["transport", "server", "tls-ring", "tls-webpki-roots"] }
|
|
tonic-prost.workspace = true
|
|
tonic-health.workspace = true
|
|
prost.workspace = true
|
|
hyper.workspace = true
|
|
http-body-util.workspace = true
|
|
hyper-util.workspace = true
|
|
bytes.workspace = true
|
|
|
|
# Async streams and futures
|
|
tokio-stream.workspace = true
|
|
futures.workspace = true
|
|
|
|
# Performance monitoring
|
|
prometheus.workspace = true
|
|
axum.workspace = true
|
|
|
|
# Database and persistence
|
|
sqlx = { workspace = true, features = ["postgres", "chrono", "uuid", "json", "macros", "runtime-tokio", "rust_decimal", "bigdecimal"] }
|
|
redis = { workspace = true, features = ["tokio-comp", "connection-manager"] }
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
bigdecimal = "0.4"
|
|
|
|
# Internal workspace crates
|
|
common = { workspace = true, features = ["database"] }
|
|
config = { workspace = true, features = ["postgres"] }
|
|
risk = { path = "../../crates/risk" }
|
|
ml = { path = "../../crates/ml", default-features = false, features = ["minimal-inference"] }
|
|
ml-features.workspace = true
|
|
data.workspace = true
|
|
|
|
# Utilities
|
|
thiserror.workspace = true
|
|
rust_decimal = { workspace = true, features = ["serde"] }
|
|
rust_decimal_macros.workspace = true
|
|
nalgebra.workspace = true
|
|
|
|
[build-dependencies]
|
|
tonic-prost-build.workspace = true
|
|
prost-build.workspace = true
|
|
|
|
[dev-dependencies]
|
|
criterion = { workspace = true }
|
|
approx = "0.5"
|
|
rand.workspace = true
|
|
serial_test = "3.0" # For serializing database tests
|