From 7659e433eb73e1f33ddac49537bfa5dfaa124875 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 11 Jul 2025 13:00:50 -0600 Subject: refactor: merge the server and cli into a single binary --- src/main.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index add0d88d..00000000 --- a/src/main.rs +++ /dev/null @@ -1,25 +0,0 @@ -#[tokio::main] -async fn main() -> Result<(), Box> { - tracing_subscriber::fmt() - .json() - .with_max_level(tracing::Level::INFO) - .with_current_span(true) - .with_span_list(true) - .with_target(true) - .with_thread_ids(true) - .with_thread_names(true) - .with_file(true) - .with_line_number(true) - .init(); - - let addr = std::env::var("BIND_ADDR") - .unwrap_or_else(|_| "127.0.0.1:50051".to_string()) - .parse()?; - - tracing::info!(address = %addr, "Starting authorization server"); - let cedar = authzd::authorization::CedarAuthorizer::default(); - let server = authzd::authorization::Server::new(cedar)?; - server.serve(addr).await?; - - Ok(()) -} -- cgit v1.2.3