added serial-out support to emulator + serial lib & command line mode for dsa emulator

This commit is contained in:
2026-02-23 19:51:05 +00:00
parent 7ab1ac8842
commit 1d38aca523
22 changed files with 1906 additions and 24 deletions
+6
View File
@@ -1,9 +1,15 @@
use std::env;
use std::path::Path;
use std::sync::Arc;
use dsa_rs::emulator::{config::Config, misc::rpc::get_rpc_client_or_none};
fn main() -> Result<(), Box<dyn std::error::Error>> {
if env::args().any(|arg| arg == "--cli") {
dsa_rs::emulator::cli::run_cli()?;
std::process::exit(0);
}
// Initialize channels and read in configuration.
let (cmd_sender, cmd_receiver) = std::sync::mpsc::channel();
let (state_sender, state_reciever) = std::sync::mpsc::channel();