refactor: restructure repo — crates/, bin/, testing/ layout

Move 17 library crates into crates/, CLI binary into bin/fxt,
consolidate 10 test crates into testing/, split config crate
from deployment config files.

Root directory reduced from 38+ to ~17 directories.
All Cargo.toml paths and build.rs proto refs updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-25 11:18:20 +01:00
parent c821f2bec8
commit 9c3d741a08
1967 changed files with 140 additions and 139 deletions

View File

@@ -104,23 +104,27 @@ path = "benches/comprehensive/full_trading_cycle.rs"
[workspace]
resolver = "2"
members = [
# "foxhunt-common-types", # DELETED - types migrated to common/src/types.rs
"trading_engine",
"risk",
"risk-data",
"trading-data",
"fxt",
"ml",
"ml-data",
"data",
"backtesting",
"adaptive-strategy", # Re-enabled after fixing compilation issues
"common",
"storage",
"model_loader",
"market-data",
"database",
"config",
# Library crates
"crates/trading_engine",
"crates/risk",
"crates/risk-data",
"crates/trading-data",
"crates/ml",
"crates/ml-data",
"crates/data",
"crates/backtesting",
"crates/adaptive-strategy",
"crates/common",
"crates/storage",
"crates/model_loader",
"crates/market-data",
"crates/database",
"crates/config",
"crates/ctrader-openapi",
"crates/web-gateway",
# CLI binary
"bin/fxt",
# Services
"services/backtesting_service",
"services/broker_gateway_service",
"services/trading_service",
@@ -128,20 +132,18 @@ members = [
"services/data_acquisition_service",
"services/trading_agent_service",
"services/api_gateway",
"services/api_gateway/load_tests",
"services/load_tests",
"services/stress_tests",
"services/integration_tests",
"tests",
"tests/e2e",
"tests/load_tests",
"web-gateway",
"ctrader-openapi",
# Testing
"testing/integration",
"testing/e2e",
"testing/load",
"testing/service-load",
"testing/stress",
"testing/service-integration",
"testing/api-gateway-load",
]
exclude = [
"testing/vault-integration",
]
exclude = [
"performance-tests",
"tests/e2e/vault_integration"
]
[workspace.package]
version = "1.0.0"
@@ -374,21 +376,20 @@ metrics-exporter-prometheus = "0.15"
# Additional test dependencies
arc-swap = "1.6"
# Local workspace crates (for inter-crate dependencies)
# foxhunt-common-types = { path = "foxhunt-common-types" } # DELETED - types migrated to common/src/types.rs
trading_engine = { path = "trading_engine" }
data = { path = "data" }
fxt = { path = "fxt" }
risk = { path = "risk" }
risk-data = { path = "risk-data" }
backtesting = { path = "backtesting" }
ml = { path = "ml", default-features = false }
adaptive-strategy = { path = "adaptive-strategy" }
common = { path = "common" }
storage = { path = "storage" }
market-data = { path = "market-data" }
config = { path = "config" }
database = { path = "database" }
ctrader-openapi = { path = "ctrader-openapi" }
trading_engine = { path = "crates/trading_engine" }
data = { path = "crates/data" }
fxt = { path = "bin/fxt" }
risk = { path = "crates/risk" }
risk-data = { path = "crates/risk-data" }
backtesting = { path = "crates/backtesting" }
ml = { path = "crates/ml", default-features = false }
adaptive-strategy = { path = "crates/adaptive-strategy" }
common = { path = "crates/common" }
storage = { path = "crates/storage" }
market-data = { path = "crates/market-data" }
config = { path = "crates/config" }
database = { path = "crates/database" }
ctrader-openapi = { path = "crates/ctrader-openapi" }
[features]
default = []

Some files were not shown because too many files have changed in this diff Show More