#![allow(
clippy::todo,
clippy::unimplemented,
clippy::panic,
clippy::unwrap_used,
clippy::expect_used,
clippy::missing_errors_doc,
clippy::missing_panics_doc,
clippy::doc_markdown,
clippy::needless_pass_by_value,
clippy::too_many_arguments,
clippy::unused_async,
clippy::diverging_sub_expression,
clippy::no_effect_underscore_binding,
clippy::let_unit_value,
clippy::used_underscore_binding,
clippy::let_underscore_untyped,
clippy::struct_field_names,
clippy::manual_let_else,
clippy::map_unwrap_or,
clippy::redundant_pub_crate,
dead_code,
unreachable_code,
unused_assignments,
unused_mut,
unused_imports,
unused_variables
)]
use std::net::SocketAddr;
use std::sync::Arc;
use arcp::error::ARCPError;
use arcp::transport::MemoryTransport;
use arcp::ARCPClient;
use serde_json::{json, Value};
type SharedRuntime = Arc<()>; type Client = ARCPClient<MemoryTransport>;
fn build_router(_runtime: SharedRuntime) {
todo!()
}
async fn health_handler() -> Value {
todo!()
}
async fn arcp_ws_handler() {
todo!()
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let runtime: SharedRuntime = Arc::new(());
let addr = SocketAddr::from(([127, 0, 0, 1], 7897_u16));
println!("server would listen on http://{addr}");
println!("ARCP WebSocket endpoint: ws://{addr}/arcp");
println!("(stub — implement build_router to actually start)");
Ok(())
}