blob: 6122a8cdd52870b88c906c5519f997ecec9e36ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#[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")
}
|