mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
exclude ui module (sciter) for flutter
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -2,6 +2,7 @@
|
||||
// Requires Rust 1.18.
|
||||
//#![windows_subsystem = "windows"]
|
||||
|
||||
#[cfg(not(feature = "flutter"))]
|
||||
use librustdesk::*;
|
||||
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
@@ -16,7 +17,12 @@ fn main() {
|
||||
common::global_clean();
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios", feature = "cli")))]
|
||||
#[cfg(not(any(
|
||||
target_os = "android",
|
||||
target_os = "ios",
|
||||
feature = "cli",
|
||||
feature = "flutter"
|
||||
)))]
|
||||
fn main() {
|
||||
if !common::global_init() {
|
||||
return;
|
||||
@@ -27,6 +33,11 @@ fn main() {
|
||||
common::global_clean();
|
||||
}
|
||||
|
||||
#[cfg(feature = "flutter")]
|
||||
fn main() {
|
||||
hbb_common::log::info!("Hello world!");
|
||||
}
|
||||
|
||||
#[cfg(feature = "cli")]
|
||||
fn main() {
|
||||
if !common::global_init() {
|
||||
|
||||
Reference in New Issue
Block a user