Add daemon crate skeleton

This commit is contained in:
michael
2026-04-26 14:31:06 -07:00
parent 97de4206d4
commit e3ab53c3c6
2 changed files with 29 additions and 0 deletions

17
daemon/Cargo.toml Normal file
View File

@@ -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 }

12
daemon/src/main.rs Normal file
View File

@@ -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(())
}