-
Notifications
You must be signed in to change notification settings - Fork 56
/
Cargo.toml
91 lines (75 loc) · 2.48 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
[package]
name = "libremarkable"
version = "0.7.0"
authors = ["Can Selcik <[email protected]>"]
repository = "https://github.com/canselcik/libremarkable"
license = "MIT"
description = "The only publicly available Framework for developing applications for the Remarkable Paper Tablet w/ Low Latency Partial Refresh Support"
readme = "README.md"
exclude = [ "reference-material/*", "legacy-c-impl/*", "private/*" ]
edition = "2021"
[dependencies]
log = "0.4.14"
once_cell = "1.9.0"
cgmath = "0.18.0"
libc = "0.2.69"
# framebuffer
memmap2 = { version = "0.5.2", optional = true }
ioctl-gen = { version = "0.1.1", optional = true }
zstd = { version = "0.9.0", optional = true }
# framebuffer-drawing
rusttype = { version = "0.9.2", optional = true }
image = { version = "0.23.14", optional = true }
line_drawing = { version = "1.0.0", optional = true }
# input
evdev = { version = "0.12.1", optional = true }
epoll = { version = "4.3.1", optional = true }
fxhash = { version = "0.2.1", optional = true }
# appctx
aabb-quadtree = { version = "0.1.0", optional = true }
# hlua
hlua = { git = "https://github.com/fenollp/hlua.git", rev = "f327e79", optional = true } # hlua = { version = "0.4.1", optional = true } TODO: https://github.com/tomaka/hlua/pull/223
# runtime benchmarking
stopwatch = { version = "0.0.7", optional = true }
[features]
default = ["scan", "framebuffer-types", "framebuffer", "framebuffer-storage", "framebuffer-drawing", "image", "framebuffer-text-drawing", "input-types", "input", "battery", "appctx", "hlua"]
scan = ["evdev"]
framebuffer-types = ["ioctl-gen"]
framebuffer = ["scan", "framebuffer-types", "memmap2"]
framebuffer-storage = ["framebuffer", "zstd"]
framebuffer-drawing = ["framebuffer", "line_drawing"]
framebuffer-text-drawing = ["framebuffer-drawing", "rusttype"]
input-types = []
input = ["scan", "input-types", "evdev", "epoll", "fxhash"]
battery = []
appctx = ["framebuffer-text-drawing", "input", "aabb-quadtree"]
enable-runtime-benchmarking = ["stopwatch"]
[profile.release]
debug = true
[[example]]
name = "spy"
path = "examples/spy.rs"
crate-type = ["dylib"]
[[example]]
name = "swtfb_sysv_spy"
path = "examples/swtfb_sysv_spy.rs"
crate-type = ["dylib"]
[[example]]
name = "demo"
path = "examples/demo.rs"
crate-type = ["bin"]
[[example]]
name = "live"
path = "examples/live.rs"
crate-type = ["bin"]
[dev-dependencies]
env_logger = "0.10.0"
# For spy
redhook = "2.0.0"
libc = "0.2.69"
# For demo
chrono = "0.4.26"
# For live
tiny_http = "0.12.0"
# For screenshot
rgb565 = "0.1.3"