forked from Narsil/rdev
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
71 lines (59 loc) · 2.09 KB
/
Cargo.toml
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
[package]
name = "rdev"
version = "0.6.3"
authors = ["Nicolas Patry <[email protected]>", "David M <[email protected]>"]
edition = "2021"
publish = false
description = "Listen and send keyboard and mouse events on Windows, Linux and MacOS. Modified version for Wooting."
documentation = "https://docs.rs/rdev/"
homepage = "https://github.com/Narsil/rdev"
repository = "https://github.com/Narsil/rdev"
readme = "README.md"
keywords = ["input", "mouse", "testing", "keyboard", "automation"]
categories = ["development-tools::testing", "api-bindings", "hardware-support"]
license = "MIT"
[dependencies]
serde = {version = "1.0", features = ["derive"], optional=true}
lazy_static = "1.4"
[features]
serialize = ["serde"]
unstable_grab = ["evdev-rs", "epoll", "inotify"]
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25"
core-graphics = {version = "0.23", features = ["highsierra"]}
core-foundation = {version = "0.9" }
core-foundation-sys = {version = "0.8" }
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
x11 = {version = "2.21", features = ["xlib", "xrecord", "xinput"]}
evdev-rs = {version = "0.6", optional=true}
epoll = {version = "4.3", optional=true}
inotify = {version = "0.10", default-features=false, optional=true}
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.48.0", features = [
"Win32_UI_WindowsAndMessaging",
"Win32_Foundation",
"Win32_System_Threading",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_TextServices"
] }
[dev-dependencies]
serde_json = "1.0"
# Some tests interact with the real OS. We can't hit the OS in parallel
# because that leads to unexpected behavior and flaky tests, so we need
# to run thoses tests in sequence instead.
serial_test = "2.0"
tokio = {version = "1.5", features=["sync", "macros", "rt-multi-thread"]}
[[example]]
name = "serialize"
required-features = ["serialize"]
[[example]]
name = "grab"
required-features = ["unstable_grab"]
[[example]]
name = "tokio_channel"
required-features = ["unstable_grab"]
[[test]]
name = "grab"
path = "tests/grab.rs"
required-features = ["unstable_grab"]