ACHIEVEMENTS: - Agent 1-4: Successfully moved OrderSide/OrderStatus/OrderType/Currency/TimeInForce to common - Agent 5-6: Consolidated MarketDataEvent and Timestamp types to common - Agent 7-8: Updated ALL imports from trading_engine::types to common::types - Agent 9-11: Eliminated 50+ duplicates, cleaned modules, removed re-exports - Agent 12: CRITICAL DISCOVERY - Root cause identified ROOT CAUSE FOUND: - Common crate missing canonical Order struct definition - Forces all 8+ services to create duplicate Order definitions - Architectural violation causing compilation chaos NEXT: Implement canonical Order struct in common crate with parallel agents 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.4 KiB
TOML
60 lines
1.4 KiB
TOML
[package]
|
|
name = "common"
|
|
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
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
description = "Shared utilities and common types for Foxhunt HFT Trading System"
|
|
|
|
[dependencies]
|
|
# Core async and utilities
|
|
tokio.workspace = true
|
|
futures.workspace = true
|
|
async-trait.workspace = true
|
|
|
|
# Serialization
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
|
|
# Error handling
|
|
thiserror.workspace = true
|
|
anyhow.workspace = true
|
|
|
|
# Time handling
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
|
|
# Financial types
|
|
rust_decimal = { workspace = true, features = ["serde", "macros"] }
|
|
|
|
# Database dependencies
|
|
sqlx = { workspace = true, features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid"], optional = true }
|
|
redis.workspace = true
|
|
|
|
# Logging and tracing
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
|
|
# Configuration
|
|
toml.workspace = true
|
|
config = { path = "../crates/config" }
|
|
|
|
# Trading engine dependency removed - common is now the canonical source
|
|
|
|
# Utilities
|
|
uuid = { workspace = true, features = ["v4", "serde"] }
|
|
once_cell.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tokio-test.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[features]
|
|
default = ["database"]
|
|
database = ["sqlx"] |