179 lines
3.5 KiB
TOML
179 lines
3.5 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2018"
|
|
name = "rdev"
|
|
version = "0.5.0-2"
|
|
authors = ["Nicolas Patry <patry.nicolas@protonmail.com>"]
|
|
build = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Listen and send keyboard and mouse events on Windows, Linux and MacOS."
|
|
homepage = "https://github.com/Narsil/rdev"
|
|
documentation = "https://docs.rs/rdev/"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"input",
|
|
"mouse",
|
|
"testing",
|
|
"keyboard",
|
|
"automation",
|
|
]
|
|
categories = [
|
|
"development-tools::testing",
|
|
"api-bindings",
|
|
"hardware-support",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/Narsil/rdev"
|
|
|
|
[lib]
|
|
name = "rdev"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "channel"
|
|
path = "examples/channel.rs"
|
|
|
|
[[example]]
|
|
name = "codes_conv"
|
|
path = "examples/codes_conv.rs"
|
|
|
|
[[example]]
|
|
name = "display"
|
|
path = "examples/display.rs"
|
|
|
|
[[example]]
|
|
name = "grab"
|
|
path = "examples/grab.rs"
|
|
|
|
[[example]]
|
|
name = "keyboard_state"
|
|
path = "examples/keyboard_state.rs"
|
|
|
|
[[example]]
|
|
name = "keycode"
|
|
path = "examples/keycode.rs"
|
|
|
|
[[example]]
|
|
name = "listen"
|
|
path = "examples/listen.rs"
|
|
|
|
[[example]]
|
|
name = "serialize"
|
|
path = "examples/serialize.rs"
|
|
required-features = ["serialize"]
|
|
|
|
[[example]]
|
|
name = "simulate"
|
|
path = "examples/simulate.rs"
|
|
|
|
[[example]]
|
|
name = "test"
|
|
path = "examples/test.rs"
|
|
|
|
[[example]]
|
|
name = "tokio_channel"
|
|
path = "examples/tokio_channel.rs"
|
|
required-features = ["unstable_grab"]
|
|
|
|
[[test]]
|
|
name = "grab"
|
|
path = "tests/grab.rs"
|
|
required-features = ["unstable_grab"]
|
|
|
|
[[test]]
|
|
name = "keycode"
|
|
path = "tests/keycode.rs"
|
|
|
|
[[test]]
|
|
name = "listen_and_simulate"
|
|
path = "tests/listen_and_simulate.rs"
|
|
|
|
[dependencies]
|
|
enum-map = "2.4.0"
|
|
lazy_static = "1.4"
|
|
log = "0.4"
|
|
strum = "0.24.1"
|
|
strum_macros = "0.24"
|
|
widestring = "1.0.2"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
optional = true
|
|
|
|
[dev-dependencies]
|
|
lazy_static = "1.4"
|
|
serde_json = "1.0"
|
|
serial_test = "0.8.0"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.5"
|
|
features = [
|
|
"sync",
|
|
"macros",
|
|
"rt-multi-thread",
|
|
]
|
|
|
|
[features]
|
|
serialize = ["serde"]
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies.epoll]
|
|
version = "4.1.0"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies.inotify]
|
|
version = "0.10.0"
|
|
default-features = false
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies.mio]
|
|
version = "0.8.4"
|
|
features = [
|
|
"os-poll",
|
|
"os-ext",
|
|
]
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies.x11]
|
|
version = "2.18"
|
|
features = [
|
|
"xlib",
|
|
"xrecord",
|
|
"xinput",
|
|
]
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
cocoa = "0.24.0"
|
|
dispatch = "0.2"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
|
|
version = "0.9.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
|
|
version = "0.8.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
|
|
version = "0.22.3"
|
|
features = ["highsierra"]
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
|
version = "0.3"
|
|
features = [
|
|
"winuser",
|
|
"errhandlingapi",
|
|
"processthreadsapi",
|
|
]
|