Add daemon crate skeleton
This commit is contained in:
17
daemon/Cargo.toml
Normal file
17
daemon/Cargo.toml
Normal 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
12
daemon/src/main.rs
Normal 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(())
|
||||
}
|
||||
Reference in New Issue
Block a user