forked from Ncerzzk/LinTx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (43 loc) · 1.55 KB
/
Cargo.toml
File metadata and controls
52 lines (43 loc) · 1.55 KB
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
[package]
name = "LinTx"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rpos = { path = "./rpos" }
nb = "1"
clap = { version = "4.4.18", features = ["derive"] }
toml = "0.8.10"
serde ={ version = "1.0.197", features = ["derive"] }
serialport = {version = "4.3.0",default-features = false}
crc = "3.0"
crsf = "2.0.1"
mlua = { version = "0.10.3", features = ["lua54", "vendored"], optional = true }
lvgl = { version = "0.6.2", default-features = false, features = ["alloc", "embedded_graphics", "use-vendored-config"], optional = true }
lvgl-sys = { version = "0.6.2", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
ads1x1x = { git = "https://github.com/eldruin/ads1x1x-rs.git" }
embedded-hal = "1.0.0"
linux-embedded-hal = "0.4.0"
joydev = { version = "0.3.1", optional = true }
libc = "0.2"
[features]
default = []
joydev_input = ["dep:joydev"]
lvgl_ui = ["dep:lvgl", "dep:lvgl-sys"]
sdl_ui = ["lvgl_ui", "dep:sdl2"]
used_linker = []
lua = ["dep:mlua"]
[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
sdl2 = { version = "0.37.0", features = ["bundled"], optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
sdl2 = { version = "0.37.0", optional = true }
[dev-dependencies]
rand = "0.8.4"
[build-dependencies]
build-data = "0"
[patch.crates-io]
joydev = { path = "third_party/joydev" }
joydev-sys = { path = "third_party/joydev-sys" }
lvgl-sys = { path = "third_party/lvgl-sys" }
lvgl = { path = "third_party/lvgl" }