-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
44 lines (36 loc) · 1.41 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
[package]
name = "rmreco"
version = "0.1.0"
authors = ["Shiroki Satsuki <me@shirok1.dev>"]
edition = "2021"
description = "A Rust library for communicating with RoboMaster Referee System through serial."
readme = "README.md"
repository = "https://github.com/shirok1/rmreco"
license = "MIT OR Apache-2.0"
keywords = ["robomaster", "serial"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0"
thiserror = "1.0"
bytes = "1"
crc = "3"
deku = { git = "https://github.com/sharksforarms/deku.git", branch = "sharksforarms/temp-write" }
hex = "0.4"
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1"
tokio = { version = "1.29", features = ["net", "rt", "sync"], optional = true }
tokio-serial = { version = "5.4", optional = true }
tokio-stream = { version = "0.1", optional = true }
tokio-util = { version = "0.7", features = ["codec"], optional = true }
futures-util = { version = "0.3", optional = true }
serialport = { version = "4.2", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
[features]
tokio_client = ["dep:tokio", "dep:tokio-serial", "dep:tokio-stream", "dep:tokio-util", "dep:futures-util"]
blocking_client = ["dep:serialport", "dep:crossbeam-channel"]
[dev-dependencies]
tokio = { version = "*", features = ["full"] }
tracing-subscriber = "0.3"
[[example]]
name = "info"
required-features = ["tokio_client"]