Files
qitech-control/server/Cargo.toml
T
Icedsoda b63adbb601 use tracing crate instead of log
remove module path from logs

setup tracing subscriber
2025-06-01 18:17:29 +02:00

62 lines
1.3 KiB
TOML

[package]
name = "server"
version = "0.1.0"
edition = "2024"
rust-version = "1.86"
[dependencies]
# ethercat
ethercrab = "0.6"
ethercat_hal = { path = "../ethercat-hal" }
control_core = { path = "../control-core" }
# concurrency
thread-priority = "1.2.0"
# web
socketioxide = "0.17.0"
tower-http = { version = "0.6.2", features = ["cors", "trace", "fs"] }
axum = { version = "0.8.4", features = ["macros"] }
# utility
uom = { version = "0.36.0", default-features = false, features = ["f64"] }
serde = "1.0.217"
anyhow = "1.0.98"
serde_json = "1.0.137"
tokio = { version = "1.44.2", features = ["rt-multi-thread"] }
open = "5.3.2"
bitvec = "1.0.1"
lazy_static = "1.5.0"
smol = "2.0.2"
tracing = { version = "0.1.41", features = ["attributes"] }
dhat = { version = "0.3.3", optional = true }
# dre usb
crc = "3.2.1"
serial = "0.4.0"
serialport = "4.7.1"
tracing-subscriber = { version = "0.3.19", features = [
"env-filter",
"chrono",
"registry",
] }
tracing-journald = "0.3.1"
tracing-futures = "0.2.5"
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.6", features = ["profiling"] }
[dev-dependencies]
approx = "0.5.1"
[features]
never_type = []
dhat-heap = ["dep:dhat"]
mock-machine = []
[profile.release]
codegen-units = 1
lto = "fat"