Files
foxhunt/common/Cargo.toml
jgrusewski ea9d8f2c88 🚨 ARCHITECTURAL DISASTER: THREE Competing Type Sources Discovered
## Critical Investigation Results

**DISASTER CONFIRMED**: Agents discovered THREE type sources instead of ONE:
1. foxhunt-common-types/ (SHOULD NOT EXIST - still active!)
2. trading_engine/src/types/ (massive duplication)
3. common/src/types.rs (depends on competing crate)

## Evidence of Violations
- foxhunt-common-types still in workspace members (line 86)
- common/Cargo.toml depends on foxhunt-common-types (line 48)
- 48+ duplicate type definitions across OrderSide, OrderStatus, OrderType
- Compilation failures due to competing imports

## Immediate Action Required
- Choose ONE canonical source
- DELETE foxhunt-common-types completely
- Consolidate ALL types to single source
- Fix THREE-WAY import chaos

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 15:33:34 +02:00

60 lines
1.5 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" }
# Common types (migrated to common/src/types.rs)
# foxhunt-common-types.workspace = true # REMOVED - types migrated to common/
# 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"]