[package] name = "tli" 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 = "Terminal Line Interface for Foxhunt HFT Trading System" # TLI binary - client-only terminal interface [[bin]] name = "tli" path = "src/main.rs" [dependencies] # gRPC and protocol buffers (essential for TLI) # 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 # tokio-stream.workspace = true # REMOVED: unused in TLI source serde.workspace = true serde_json.workspace = true # futures.workspace = true # REMOVED: unused in TLI - 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 # REMOVED trading_engine dependency - violates pure client architecture # Terminal UI framework dependencies (essential for TLI) ratatui.workspace = true crossterm.workspace = true # Time and financial types for UI widgets chrono.workspace = true rust_decimal.workspace = true # Import adaptive-strategy for UI widget types only (microstructure module) adaptive-strategy.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 # 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 - TLI 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: TLI is pure client, should not depend on core business logic # config = { workspace = true } # REMOVED: Database access violation - TLI is pure client # TLI 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] # Test utilities feature for integration tests test-utils = [] [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 mockall.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 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 - TLI is now client-only [lints] workspace = true