blob: 597524a8a8e75c924aeb1950794cf03847f979e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#[cfg(feature = "unix")]
mod unix;
#[cfg(feature = "websocket")]
mod websocket;
#[cfg(feature = "stdio")]
mod stdio;
#[cfg(feature = "tcp")]
mod tcp;
pub mod generic;
pub fn start() {
#[cfg(feature = "unix")]
std::thread::spawn(|| unix::run());
#[cfg(feature = "websocket")]
std::thread::spawn(|| websocket::run());
#[cfg(feature = "stdio")]
std::thread::spawn(|| stdio::run());
#[cfg(feature = "tcp")]
std::thread::spawn(|| tcp::run());
#[cfg(not(feature = "websocket"))]
#[cfg(not(feature = "unix"))]
log::warn!("no interfaces enabled, daemon will be inaccesssible")
}
|