Files
foxhunt/bin/fxt/Cargo.toml
2026-03-04 15:08:40 +01:00

169 lines
6.0 KiB
TOML

[package]
name = "fxt"
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 = "Foxhunt CLI — command-line interface for Foxhunt HFT Trading System"
# CLI binary
[[bin]]
name = "fxt"
path = "src/main.rs"
[dependencies]
# gRPC and protocol buffers (essential for FXT)
# NOTE: Tonic 0.14 uses 'tls-ring' + 'tls-webpki-roots' instead of 'tls' + 'tls-roots'
# NOTE: Tonic 0.14 requires tonic-prost for generated code runtime
tonic = { workspace = true, features = ["transport", "tls-ring", "tls-webpki-roots"] }
tonic-prost.workspace = true # Required for Tonic 0.14 generated code
prost.workspace = true # Required for generated protobuf code
# Core async and serialization (essential)
tokio = { workspace = true, features = ["io-std"] }
tokio-stream.workspace = true
serde.workspace = true
serde_json.workspace = true
# futures.workspace = true # REMOVED: unused in FXT - only futures-util is used
futures-util.workspace = true
uuid.workspace = true
# Error handling and logging
anyhow.workspace = true
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
# Common types for communication
common.workspace = true
# Broker connectivity check (optional, for direct IB Gateway validation)
ibapi = { workspace = true, optional = true }
# REMOVED trading_engine dependency - violates pure client architecture
# Time and financial types
chrono.workspace = true
rust_decimal.workspace = true
# Authentication dependencies
keyring = "3.6" # OS keyring integration for secure token storage
rpassword = "7.3" # Secure password input
jsonwebtoken = "9.2" # JWT token parsing and validation
async-trait.workspace = true # Required for async trait implementations
# Cryptography dependencies (used in auth module)
aes-gcm = "0.10" # AES-256-GCM authenticated encryption (auth/encryption.rs)
argon2 = "0.5" # Password-based key derivation Argon2id (auth/key_manager.rs)
rand = "0.8" # Cryptographically secure random number generation (auth/encryption.rs, client/stream_manager.rs)
zeroize = "1.7" # Secure memory clearing (auth/key_manager.rs)
sha2 = "0.10" # SHA-256 hashing for key derivation (auth/key_manager.rs)
getrandom = "0.2" # Cross-platform secure random generation (auth/key_manager.rs)
# CLI and output formatting (for command-line interface)
clap = { version = "4.5", features = ["derive", "env"] } # Command-line argument parsing
colored = "2.1" # Terminal color output
tabled = "0.15" # Table formatting for CLI output
owo-colors = "4.0" # Advanced terminal colors
comfy-table = "7.1" # Rich ASCII tables
indicatif = "0.17" # Progress bars (for future use)
console = "0.15" # Terminal utilities
# Terminal UI dashboard
ratatui = "0.29"
crossterm = { version = "0.28", features = ["event-stream"] }
tokio-util.workspace = true # CancellationToken for graceful stream shutdown
# Configuration file support
toml = "0.8" # TOML parsing for config files
dirs = "5.0" # Cross-platform directory access
hex = "0.4" # Hex encoding for file-based token storage
base64 = "0.22" # Base64 encoding for encrypted token storage
# Note: Database-related imports removed to enforce clean service architecture
# - SQLite pools should only exist in services
# - PostgreSQL connections should only exist in services
# - Configuration operations use gRPC ConfigurationService
# - All database access goes through proper service layers
# Database dependencies removed - FXT is pure client using gRPC ConfigurationService
# sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "sqlite", "chrono", "uuid"] } # REMOVED: Database access violation
# Terminal UI widgets will be added when TUI is implemented
# Workspace dependencies - REMOVED core dependency to avoid namespace collision
# core.workspace = true # REMOVED: FXT is pure client, should not depend on core business logic
# config = { workspace = true } # REMOVED: Database access violation - FXT is pure client
# FXT should NOT depend on ML, Risk, or Data modules
# All business logic should be accessed through gRPC services
# Logging setup will be added when needed
[features]
default = ["broker-check"]
# Test utilities feature for integration tests
test-utils = []
# Direct IBKR connectivity check via ibapi crate
broker-check = ["dep:ibapi"]
[build-dependencies]
# Build dependencies - USE WORKSPACE
# NOTE: Tonic 0.14+ uses tonic-prost-build instead of tonic-build
tonic-prost-build.workspace = true
[dev-dependencies]
# Core test dependencies - USE WORKSPACE
tokio-test.workspace = true
# wiremock.workspace = true # REMOVED - too heavy
proptest.workspace = true
criterion.workspace = true
# fake.workspace = true # REMOVED - too heavy
# httpmock.workspace = true # REMOVED - too heavy
# tracing-test.workspace = true # REMOVED - too heavy
# Utilities for testing
async-trait.workspace = true
futures.workspace = true # Added for benchmark futures::executor support
futures-util.workspace = true
tokio-stream.workspace = true # Required for E2E stream tests
once_cell.workspace = true
rand.workspace = true
base64 = "0.22" # JWT token encoding for integration tests
tempfile = "3.8" # Temporary directories for integration tests
# CLI integration testing
assert_cmd = "2.0" # Command-line testing
predicates = "3.0" # Assertion predicates for assert_cmd
serial_test = "3.0" # Serial test execution to prevent race conditions
[[bench]]
name = "configuration_benchmarks"
harness = false
[[bench]]
name = "client_performance"
harness = false
[[bench]]
name = "serialization_benchmarks"
harness = false
[[bench]]
name = "encryption_performance"
harness = false
# Server binary removed - FXT is now client-only
[lints]
workspace = true
# Package-specific lint overrides
# Note: Can't use [lints.rust] section with workspace = true
# Instead, suppress warnings at the file level in test files where needed