mattrguerra/cortexmainPrivate on GitHub, published here in full

main.rs

Language Rust338 B9 lines

crates/standin/src/main.rs

  1. //! `cargo run -p standin -- 127.0.0.1:8799` serves the stand-in until stopped.
  2. #[tokio::main]
  3. async fn main() {
  4. let bind = std::env::args().nth(1).unwrap_or_else(|| "127.0.0.1:8799".into());
  5. let s = standin::spawn_on(&bind).await;
  6. println!("standin listening on {}", s.base_url());
  7. tokio::signal::ctrl_c().await.ok();
  8. }