| 1 |
[package] |
| 2 |
name = "evdev" |
| 3 |
version = "0.13.2" |
| 4 |
authors = ["Corey Richardson <[email protected]>"] |
| 5 |
description = "evdev interface for Linux" |
| 6 |
license = "Apache-2.0 OR MIT" |
| 7 |
repository = "https://github.com/cmr/evdev" |
| 8 |
documentation = "https://docs.rs/evdev" |
| 9 |
edition = "2021" |
| 10 |
rust-version = "1.64" |
| 11 |
|
| 12 |
[features] |
| 13 |
serde = ["dep:serde"] |
| 14 |
tokio = ["dep:tokio"] |
| 15 |
stream-trait = ["tokio", "futures-core"] |
| 16 |
device-test = [] |
| 17 |
|
| 18 |
[dependencies] |
| 19 |
libc = { version = "0.2.121", features = ["extra_traits"]} |
| 20 |
bitvec = "1.0.0" |
| 21 |
cfg-if = "1.0" |
| 22 |
nix = { version = "0.29", features = ["ioctl", "fs", "event"] } |
| 23 |
|
| 24 |
serde = { version = "1.0", features = ["derive"], optional = true } |
| 25 |
tokio = { version = "1.17", features = ["fs","time", "net"], optional = true } |
| 26 |
futures-core = { version = "0.3", optional = true } |
| 27 |
|
| 28 |
[dev-dependencies] |
| 29 |
tokio = { version = "1.17", features = ["macros", "rt-multi-thread", "time"] } |
| 30 |
itertools = "0.10" |
| 31 |
|
| 32 |
[[example]] |
| 33 |
name = "evtest_tokio" |
| 34 |
required-features = ["tokio"] |
| 35 |
|
| 36 |
[package.metadata.docs.rs] |
| 37 |
all-features = true |
| 38 |
rustdoc-args = ["--cfg", "docsrs"] |