swactor/crates/simulation/examples/replay.rs
zacheryasc 03d40c42b6 refactor: consolidate crates (#39)
Crates continued to grow in number, but most are still quite small and feature specific. This refactor consolidates them.


Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
2026-02-13 17:34:01 +00:00

15 lines
354 B
Rust

use simulation::dashboard::serve_dashboard;
fn main() {
let args: Vec<String> = std::env::args().collect();
let trace_dir = args
.get(1)
.expect("Usage: replay <trace-dir> [port]");
let port: u16 = args
.get(2)
.and_then(|s| s.parse().ok())
.unwrap_or(8080);
serve_dashboard(trace_dir, port);
}