-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
136 lines (119 loc) · 3.75 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[package]
name = "monitor"
version = "0.1.0"
authors = ["Hiroki Moto <[email protected]>"]
edition = "2018"
description = "Tray Icon, that thing in the corner"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/hirokimoto/monitor"
repository = "https://github.com/hirokimoto/monitor"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["winuser", "windef", "minwindef", "shellapi", "libloaderapi", "basetsd"] }
[dependencies]
winit = { version = "0.25", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
serde = {version = "1.0", features = ["derive"], optional=true}
lazy_static = "1.4"
anyhow = "1.0"
display-info = "0.4"
image = "0.24"
percent-encoding = "2.3"
aes = { version = "0.8.2", optional = true }
byteorder = "1.4.3"
bzip2 = { version = "0.4.3", optional = true }
constant_time_eq = { version = "0.1.5", optional = true }
crc32fast = "1.3.2"
flate2 = { version = "1.0.23", default-features = false, optional = true }
hmac = { version = "0.12.1", optional = true, features = ["reset"] }
pbkdf2 = {version = "0.11.0", optional = true }
sha1 = {version = "0.10.1", optional = true }
time = { version = "0.3.7", optional = true, default-features = false, features = ["std"] }
zstd = { version = "0.11.2", optional = true }
chrono = "0.4"
parking_lot = "0.12"
linkify = "0.10.0"
winsafe = { version = "0.0.17", features = ["gui"] }
bcrypt = "0.15"
regex = "1.9.4"
rusty-tesseract = "1.1.7"
once_cell = "1.18.0"
active-win-pos-rs = "0.8"
arboard = "3.2.1"
preferences = "1.1.0"
cmd_lib = "1.3.0"
[lib]
name = "monitor"
path = "src/lib.rs"
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
all-features = true
[workspace]
members = [
"examples/winit",
"examples/winapi",
"examples/crossbeam",
]
[features]
serialize = ["serde"]
unstable_grab = ["evdev-rs", "epoll", "inotify"]
aes-crypto = ["aes", "constant_time_eq", "hmac", "pbkdf2", "sha1"]
deflate = ["flate2/rust_backend"]
deflate-miniz = ["flate2/default"]
deflate-zlib = ["flate2/zlib"]
unreserved = []
default = ["aes-crypto", "bzip2", "deflate", "time", "zstd"]
[target.'cfg(any(all(target_arch = "arm", target_pointer_width = "32"), target_arch = "mips", target_arch = "powerpc"))'.dependencies]
crossbeam-utils = "0.8.8"
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.22"
core-graphics = "0.22"
core-foundation = {version = "0.7"}
core-foundation-sys = {version = "0.7"}
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
x11 = {version = "2.18", features = ["xlib", "xrecord", "xinput"]}
evdev-rs = {version = "0.4.0", optional=true}
epoll = {version = "4.1.0", optional=true}
inotify = {version = "0.8.2", default-features=false, optional=true}
dbus = { version = "0.9", features = ["vendored"] }
libwayshot = "0.2"
xcb = "1.2"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winuser", "errhandlingapi", "processthreadsapi"] }
fxhash = "0.2"
widestring = "1.0"
windows = { version = "0.51.1", features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
] }
[dev-dependencies]
serde_json = "1.0"
serial_test = "0.4"
tokio = {version = "1.5", features=["sync", "macros", "rt-multi-thread"]}
bencher = "0.1.5"
getrandom = "0.2.5"
walkdir = "2.3.2"
time = { version = "0.3.7", features = ["formatting", "macros"] }
[[example]]
name = "serialize"
path = "track/serialize.rs"
required-features = ["serialize"]
[[example]]
name = "grab"
path = "track/grab.rs"
required-features = ["unstable_grab"]
[[example]]
name = "tokio_channel"
path = "track/tokio_channel.rs"
required-features = ["unstable_grab"]
[[test]]
name = "grab"
path = "tests/grab.rs"
required-features = ["unstable_grab"]
[[bench]]
name = "read_entry"
harness = false
[[bench]]
name = "read_metadata"
harness = false