[package]
edition = "2021"
name = "input-capture"
version = "0.4.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "cross-platform input-capture library used by lan-mouse"
readme = false
license = "GPL-3.0-or-later"
repository = "https://github.com/feschber/lan-mouse"
[features]
default = [
"layer_shell",
"x11",
"libei",
]
layer_shell = [
"dep:wayland-client",
"dep:wayland-protocols",
"dep:wayland-protocols-wlr",
]
libei = [
"dep:reis",
"dep:ashpd",
]
x11 = ["dep:x11"]
[lib]
name = "input_capture"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1.81"
[dependencies.futures]
version = "0.3.28"
[dependencies.futures-core]
version = "0.3.30"
[dependencies.input-event]
version = "0.4.0"
[dependencies.log]
version = "0.4.22"
[dependencies.memmap]
version = "0.7"
[dependencies.once_cell]
version = "1.19.0"
[dependencies.tempfile]
version = "3.25.0"
[dependencies.thiserror]
version = "2.0.0"
[dependencies.tokio]
version = "1.32.0"
features = [
"io-util",
"io-std",
"macros",
"net",
"process",
"rt",
"sync",
"signal",
"time",
]
[dependencies.tokio-util]
version = "0.7.11"
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.ashpd]
version = "0.13.9"
features = [
"input_capture",
"tokio",
]
optional = true
default-features = false
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.reis]
version = "0.5.0"
features = ["tokio"]
optional = true
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.wayland-client]
version = "0.31.1"
optional = true
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.wayland-protocols]
version = "0.32.1"
features = [
"client",
"staging",
"unstable",
]
optional = true
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.wayland-protocols-wlr]
version = "0.3.1"
features = ["client"]
optional = true
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies.x11]
version = "2.21.0"
features = [
"xlib",
"xtest",
]
optional = true
[target.'cfg(target_os="macos")'.dependencies.bitflags]
version = "2.6.0"
[target.'cfg(target_os="macos")'.dependencies.core-foundation]
version = "0.10.0"
[target.'cfg(target_os="macos")'.dependencies.core-foundation-sys]
version = "0.8.6"
[target.'cfg(target_os="macos")'.dependencies.core-graphics]
version = "0.25.0"
features = ["highsierra"]
[target.'cfg(target_os="macos")'.dependencies.keycode]
version = "1.0.0"
[target.'cfg(target_os="macos")'.dependencies.libc]
version = "0.2.155"
[target."cfg(windows)".dependencies.windows]
version = "0.61.2"
features = [
"Win32_System_LibraryLoader",
"Win32_System_Threading",
"Win32_Foundation",
"Win32_Graphics",
"Win32_Graphics_Gdi",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
]