diff --git a/rust/agama-dbus-server/src/lib.rs b/rust/agama-dbus-server/src/lib.rs new file mode 100644 index 0000000000..a4c9dc66c8 --- /dev/null +++ b/rust/agama-dbus-server/src/lib.rs @@ -0,0 +1,4 @@ +pub mod error; +pub mod locale; +pub mod network; +pub mod questions; diff --git a/rust/agama-dbus-server/src/main.rs b/rust/agama-dbus-server/src/main.rs index eb0348a404..6b3914d56c 100644 --- a/rust/agama-dbus-server/src/main.rs +++ b/rust/agama-dbus-server/src/main.rs @@ -1,10 +1,6 @@ -pub mod error; -pub mod locale; -pub mod network; -pub mod questions; +use agama_dbus_server::{locale, network::NetworkService, questions}; use log::LevelFilter; -use network::NetworkService; use std::future::pending; const ADDRESS: &str = "unix:path=/run/agama/bus"; @@ -28,9 +24,9 @@ async fn main() -> Result<(), Box> { .unwrap(); // unwrap here as we are sure no other logger active } // When adding more services here, the order might be important. - crate::questions::start_service(ADDRESS).await?; + questions::start_service(ADDRESS).await?; log::info!("Started questions interface"); - let _conn = crate::locale::start_service(ADDRESS).await?; + let _conn = locale::start_service(ADDRESS).await?; log::info!("Started locale interface"); NetworkService::start(ADDRESS).await?; log::info!("Started network interface");