aboutsummaryrefslogtreecommitdiffstats
path: root/input-emulation/Cargo.toml
blob: 2f24b38a90d4162b5b4ca0dc885d353e97214e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
name = "input-emulation"
description = "cross-platform input emulation library used by lan-mouse"
version = "0.4.0"
edition = "2021"
license = "GPL-3.0-or-later"
repository = "https://github.com/feschber/lan-mouse"

[[example]]
name = "keymap_fd_churn"
required-features = ["wlroots"]

[[example]]
name = "double_click"
required-features = ["wlroots"]

[dependencies]
async-trait = "0.1.80"
futures = "0.3.28"
log = "0.4.22"
input-event = { path = "../input-event", version = "0.4.0" }
thiserror = "2.0.0"
tokio = { version = "1.32.0", features = [
    "io-util",
    "io-std",
    "macros",
    "net",
    "process",
    "rt",
    "sync",
    "signal",
    "time"
] }
once_cell = "1.19.0"

[target.'cfg(all(unix, not(target_os="macos")))'.dependencies]
bitflags = "2.6.0"
wayland-client = { version = "0.31.1", optional = true }
wayland-protocols = { version = "0.32.1", features = [
    "client",
    "staging",
    "unstable",
], optional = true }
wayland-protocols-wlr = { version = "0.3.1", features = [
    "client",
], optional = true }
wayland-protocols-misc = { version = "0.3.1", features = [
    "client",
], optional = true }
x11 = { version = "2.21.0", features = ["xlib", "xtest"], optional = true }
ashpd = { version = "0.13.9", default-features = false, features = [
    "remote_desktop",
    "screencast",
    "tokio",
], optional = true }
reis = { version = "0.7.0", features = ["tokio"], optional = true }

[target.'cfg(target_os="macos")'.dependencies]
bitflags = "2.6.0"
core-foundation = "0.10.0"
core-foundation-sys = "0.8.6"
core-graphics = { version = "0.25.0", features = ["highsierra"] }
keycode = "1.0.0"

[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",
] }

[features]
default = ["wlroots", "x11", "remote_desktop_portal", "libei"]
wlroots = [
    "dep:wayland-client",
    "dep:wayland-protocols",
    "dep:wayland-protocols-wlr",
    "dep:wayland-protocols-misc",
]
x11 = ["dep:x11"]
remote_desktop_portal = ["dep:ashpd"]
libei = ["dep:reis", "dep:ashpd"]