Files
foxhunt/common/Cargo.toml
jgrusewski 034c8ffe91 fix(common): Add missing tracing-appender dependency for file logging
The logger.rs implementation uses tracing_appender::non_blocking but the
dependency was not added to Cargo.toml. This commit adds:

- tracing-appender = "0.2" to workspace dependencies (Cargo.toml)
- tracing-appender.workspace = true to common/Cargo.toml

This fixes compilation errors when using the logger with file output enabled.
The non_blocking writer provides proper async file I/O for log files.

Verified:
- cargo check -p common: passes
- cargo clippy -p common: passes
- cargo build -p common: success
2025-10-23 13:21:06 +02:00

82 lines
2.0 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"] }
num-traits.workspace = true
# Database dependencies
sqlx = { workspace = true, features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid", "rust_decimal", "macros"], optional = true }
redis.workspace = true
# Logging and tracing
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-appender.workspace = true
tracing-opentelemetry.workspace = true
opentelemetry.workspace = true
opentelemetry-jaeger.workspace = true
opentelemetry_sdk.workspace = true
# gRPC (for correlation ID propagation)
tonic.workspace = true
# Configuration
toml.workspace = true
config = { path = "../config" }
# Trading engine dependency removed - common is now the canonical source
# Utilities
uuid = { workspace = true, features = ["v4", "serde"] }
once_cell.workspace = true
rand.workspace = true
# Metrics (Wave 5)
prometheus.workspace = true
lazy_static.workspace = true
[dev-dependencies]
tokio-test.workspace = true
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
fastrand = "2.1"
jsonwebtoken.workspace = true
ml = { path = "../ml" }
tempfile = "3.8"
[features]
default = ["database"]
database = ["sqlx"]
[[bench]]
name = "ml_strategy_bench"
harness = false