1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[cfg(feature = "async")] mod tmux_impl; #[cfg(feature = "async")] #[tokio::main] async fn main() { let tmux = tmux_impl::Tmux::new().await; tmux.run().await; } #[cfg(not(feature = "async"))] fn main() { panic!("tmux example requires feature async") }