From e3ab53c3c6c798ba52f8b5a6a9974399f1c71461 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 26 Apr 2026 14:31:06 -0700 Subject: [PATCH] Add daemon crate skeleton --- daemon/Cargo.toml | 17 +++++++++++++++++ daemon/src/main.rs | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 daemon/Cargo.toml create mode 100644 daemon/src/main.rs 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(()) +}