-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
49 lines (44 loc) · 1.83 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
[package]
name = "vex-v5-serial"
version = "0.3.1"
edition = "2021"
license = "MIT"
description = "A library for communicating with VEX V5 Brains"
repository = "https://github.com/vexide/vex-v5-serial"
authors = [
"vexide",
"Gavin Niederman <gavinniederman@gmail.com>",
"Tropical"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# We depend on this because for some reason it fixes an issue with tokio-serial.
crc = "3.0.0"
thiserror = "1.0.37"
bitflags = "2.5.0"
log = "0.4.21"
flate2 = { version = "1.0.30", optional = true }
serde = { version = "1.0.203", optional = true, features = ["derive"] }
serde_ini = { version = "0.2.0", optional = true }
serde_bytes = { version = "0.11.15", optional = true }
uuid = { version = "1.8.0", optional = true }
serialport = { version = "4.5.0", optional = true, features = ["usbportinfo-interface"] }
tokio = { version = "1.23.0", features = ["full"], optional = true }
tokio-serial = { version = "5.4.4", default-features = false, optional = true }
image = { version = "0.25.1", optional = true }
btleplug = { version = "0.11.5", optional = true }
tokio-stream = { version = "0.1.11", optional = true }
futures = { version = "0.3.30", optional = true }
[dev-dependencies]
simplelog = "0.12.2"
rustyline = "14.0.0"
[features]
default = ["serial", "bluetooth", "screen-command"]
serial = ["connection", "dep:tokio", "dep:tokio-serial", "dep:serialport"]
bluetooth = ["connection", "dep:btleplug", "dep:futures", "dep:tokio", "dep:tokio-stream", "dep:uuid"]
connection = ["dep:serde_ini", "dep:serde", "dep:flate2"]
screen-command = ["dep:image"]
serde_bytes = ["dep:serde_bytes"]
# We do this so that tokio-serial uses the latest, fixed version of mio-serial
[patch.crates-io]
mio-serial = { git = "https://github.com/berkowski/mio-serial.git" }