You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/turn-rs/cli/src
    
    the code of the file until where you have to start completion: mod events;
mod state;
mod ui;
mod util;

use std::{
    io::{self, stdout},
    sync::Arc,
};

use clap::Parser;
use crossterm::{
    event::{self, Event, KeyCode},
    terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
    ExecutableCommand,
};

use events::EventProxy;
use ratatui::prelude::*;
use state::create_state;
use turn_driver::controller::Controller;
use ui::Ui;
use util::Opts;

#[tokio::main]
asyn
    
async fn main() -> anyhow::Result<()> {
    let opts = Opts::parse();
    let rpc = Arc::new(Controller::new(&opts.uri).await?);
    let (event_proxy, receiver) = EventProxy::new();
    let state = create_state(rpc, receiver).await;

    enable_raw_mode()?;
    stdout().execute(EnterAlternateScreen)?;
    let mut terminal = Terminal::new(CrosstermBackend::new(stdout()))?;

    let ui = Ui::new(event_proxy, state);
    let mut should_quit = false;
    while !should_quit {
        should_quit = handle_events(&ui)?;
        terminal.draw(|frame| {
            ui.draw(frame);
        })?;
    }

    disable_raw_mode()?;
    stdout().execute(LeaveAlternateScreen)?;
    Ok(())
}