#![deny(rustdoc::broken_intra_doc_links)]
use std::sync::Arc;
use trusty_common::tickets::api::client::BackendClient;
use trusty_common::tickets::api::config::Config;
use trusty_common::tickets::server::{AppState, run_stdio};
#[tokio::main(flavor = "current_thread")]
async fn main() -> anyhow::Result<()> {
trusty_common::init_tracing(0);
let config = Config::load()?;
let client = BackendClient::from_config(config).await?;
let state = AppState {
client: Arc::new(client),
};
run_stdio(state).await
}