mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
28 lines
447 B
Rust
28 lines
447 B
Rust
#![deny(clippy::all)]
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
pub mod env;
|
|
pub mod keymap;
|
|
pub mod modifiers;
|
|
pub mod mouse;
|
|
|
|
#[cfg(target_os = "linux")]
|
|
mod hook;
|
|
|
|
#[cfg(target_os = "linux")]
|
|
pub use hook::{InputHook, is_available};
|
|
|
|
#[cfg(not(target_os = "linux"))]
|
|
mod stub {
|
|
use napi_derive::napi;
|
|
|
|
#[napi]
|
|
pub fn is_available() -> bool {
|
|
false
|
|
}
|
|
}
|
|
|
|
#[cfg(not(target_os = "linux"))]
|
|
pub use stub::is_available;
|