make start_server available in cli

This commit is contained in:
rustdesk
2022-12-29 10:59:17 +08:00
parent cfaeb6ac0a
commit 7dc0c07578
4 changed files with 14 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ use std::{
time::Duration,
};
#[cfg(not(feature = "cli"))]
pub mod audio_service;
cfg_if::cfg_if! {
if #[cfg(not(any(target_os = "android", target_os = "ios")))] {
@@ -53,8 +54,14 @@ mod connection;
pub mod portable_service;
mod service;
mod video_qos;
#[cfg(not(feature = "cli"))]
pub mod video_service;
#[cfg(feature = "cli")]
mod stub;
#[cfg(feature = "cli")]
pub use stub::*;
use hbb_common::tcp::new_listener;
pub type Childs = Arc<Mutex<Vec<std::process::Child>>>;