mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 16:30:48 +08:00
del: 移除安卓支持
This commit is contained in:
61
src/lib.rs
61
src/lib.rs
@@ -1,68 +1,65 @@
|
||||
//! Core library for One-KVM (IP‑KVM: capture, HID, OTG, streaming, Web UI glue).
|
||||
|
||||
#[cfg(not(any(feature = "android", unix, windows)))]
|
||||
#[cfg(not(any(target_os = "linux", windows)))]
|
||||
compile_error!("One-KVM supports Linux and Windows targets only.");
|
||||
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
pub mod runtime;
|
||||
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod atx;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod audio;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod auth;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod computer_use;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod config;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod db;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod diagnostics;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod error;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod events;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod extensions;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod hid;
|
||||
#[cfg(all(unix, any(feature = "android", feature = "desktop")))]
|
||||
#[cfg(all(unix, feature = "desktop"))]
|
||||
pub mod msd;
|
||||
#[cfg(all(unix, any(feature = "android", feature = "desktop")))]
|
||||
#[cfg(all(unix, feature = "desktop"))]
|
||||
pub mod otg;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod platform;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod redfish;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod rtsp;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod rustdesk;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod state;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod stream;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod stream_encoder;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod update;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod utils;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod video;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod vnc;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod web;
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod webrtc;
|
||||
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod secrets {
|
||||
include!(concat!(env!("OUT_DIR"), "/secrets_generated.rs"));
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "android", feature = "desktop"))]
|
||||
#[cfg(feature = "desktop")]
|
||||
pub use error::{AppError, Result};
|
||||
|
||||
Reference in New Issue
Block a user