-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (44 loc) · 1.35 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
[package]
name = "relay"
version = "0.1.0"
edition = "2021"
[lib]
name = "r413d08_lib"
path = "src/lib.rs"
[[bin]]
name = "relay"
path = "src/main.rs"
required-features = ["bin-dependencies"]
[features]
default = ["tokio-rtu-sync", "tokio-rtu", "bin-dependencies"]
bin-dependencies = [
"dep:anyhow",
"tokio-rtu-sync",
"tokio-tcp-sync",
"dep:log",
"dep:tokio-serial",
"clap/derive",
"dep:clap-verbosity-flag",
"dep:clap-num",
"dep:flexi_logger",
"dep:dialoguer",
"dep:humantime",
]
tokio-rtu-sync = ["tokio-modbus/rtu-sync", "dep:tokio-serial"]
tokio-rtu = ["tokio-modbus/rtu", "dep:tokio-serial"]
tokio-tcp-sync = ["tokio/net", "tokio-modbus/tcp-sync"]
tokio-tcp = ["tokio/net", "tokio-modbus/tcp"]
[dependencies]
thiserror = "2"
tokio-modbus = { version = "0.16", default-features = false, optional = true }
tokio-serial = { version = "5", optional = true }
tokio = { version = "1", default-features = false, optional = true }
# Requirements for bin
anyhow = { version = "1", optional = true }
log = { version = "0.4", optional = true }
clap = { version = "4", optional = true }
clap-verbosity-flag = { version = "3", optional = true }
clap-num = { version = "1", optional = true }
flexi_logger = { version = "0.29", optional = true }
dialoguer = { version = "0.11", optional = true }
humantime = { version = "2", optional = true }