1 2 3 4 5 6 7 8 9 10 11 12 13 14
use pwmd::Args; use structopt::StructOpt; use tracing::info; #[tokio::main] async fn main() -> anyhow::Result<()> { pwmd::setup_logging().unwrap(); let opts = Args::from_args(); pwmd::dbus::listen(opts, || { info!("Ready."); }) .await?; Ok(()) }