swactor/crates/dashboard/Cargo.toml

40 lines
1.2 KiB
TOML
Raw Normal View History

[package]
name = "dashboard"
version = "0.1.0"
edition = "2024"
[dependencies]
swactor = { path = "../..", features = ["serde", "tracing"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["registry"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
axum = "0.8"
tokio = { version = "1", features = ["net", "rt-multi-thread", "sync", "time"] }
tokio-stream = "0.1"
crossbeam-queue = "0.3.12"
ratatui = { version = "0.29", optional = true, default-features = false, features = ["crossterm"] }
crossterm = { version = "0.28", optional = true }
clap = { version = "4", features = ["derive"], optional = true }
ctrlc = "3"
2026-05-25 18:19:06 +00:00
anyhow = { version = "1", optional = true }
distribution = { path = "../distribution", optional = true }
[features]
default = []
tui = ["dep:ratatui", "dep:crossterm"]
2026-05-25 18:19:06 +00:00
# Offline replay viewer example: loads a finalized diagnostics bundle
# (tarball or spool dir) and serves a localhost web UI for scrubbing
# through the event timeline.
replay-viewer = ["dep:anyhow", "dep:distribution", "distribution/collector"]
[[bin]]
name = "swactor-tui"
path = "src/bin/tui.rs"
required-features = ["tui"]
2026-05-25 18:19:06 +00:00
[[example]]
name = "replay_viewer"
path = "examples/replay_viewer.rs"
required-features = ["replay-viewer"]