#[cfg(feature = "unix")] mod unix; #[cfg(feature = "websocket")] mod websocket; pub fn start() { #[cfg(feature = "unix")] std::thread::spawn(|| unix::run()); #[cfg(feature = "websocket")] std::thread::spawn(|| websocket::run()); #[cfg(not(feature = "websocket"))] #[cfg(not(feature = "unix"))] log::warn!("no interfaces enabled, daemon will be inaccesssible") }