diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml new file mode 100644 index 0000000..d36b65b --- /dev/null +++ b/daemon/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "ubuntu-fidod" +version.workspace = true +edition.workspace = true +license.workspace = true + +[[bin]] +name = "ubuntu-fidod" +path = "src/main.rs" + +[dependencies] +ubuntu-fido-common = { path = "../common" } +zbus = { workspace = true } +tokio = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } +anyhow = { workspace = true } diff --git a/daemon/src/main.rs b/daemon/src/main.rs new file mode 100644 index 0000000..f4bd4c4 --- /dev/null +++ b/daemon/src/main.rs @@ -0,0 +1,12 @@ +use anyhow::Result; +use tracing::info; + +#[tokio::main] +async fn main() -> Result<()> { + tracing_subscriber::fmt() + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .init(); + info!("ubuntu-fidod {} starting", env!("CARGO_PKG_VERSION")); + // D-Bus service registration in Phase 1. + Ok(()) +}