forked from roboplc/roboplc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
116 lines (100 loc) · 3.57 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[package]
name = "roboplc"
version = "0.4.2"
edition = "2021"
authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0"
description = "Framework for PLCs and real-time micro-services"
repository = "https://github.com/roboplc/roboplc"
keywords = ["realtime", "robots", "plc", "industrial"]
readme = "README.md"
autoexamples = false
[package.metadata.docs.rs]
features = ["full", "eva-common/openssl-no-fips"]
[package.metadata.playground]
features = ["full", "eva-common/openssl-no-fips"]
[dependencies]
binrw = "0.13.3"
bma-ts = { version = "0.1", features = ["serde"] }
colored = "1"
libc = "0.2.153"
nix = { version = "0.27", features = ["signal"] }
object-id = "0.1.3"
oneshot = { version = "0.1.6", default-features = false, features = ["std"] }
pin-project = "1.1.5"
rmodbus = { version = "0.9.4", optional = true }
roboplc-derive = { version = "0.3" }
serde = { version = "1.0", features = ["derive", "rc"] }
serial = "0.4.0"
sysinfo = "0.29"
thiserror = "1.0.57"
tracing = "0.1.40"
signal-hook = "0.3.17"
eva-common = { version = "0.3.68", features = ["events", "payload", "common-payloads", "acl"], optional = true }
eva-sdk = { version = "0.3.49", features = ["controller"], optional = true }
busrt = { version = "0.4.9", features = ["rpc", "ipc"], optional = true }
tokio = { version = "1.36.0", optional = true }
hostname = { version = "0.3.1", optional = true }
env_logger = "0.10"
log = "0.4.21"
metrics-exporter-prometheus = { version = "0.14.0", optional = true, default-features = false, features = ["http-listener"] }
metrics = { version = "0.22.3", optional = true }
snmp = { version = "0.2.2", optional = true }
rtsc = "0.3"
rvideo = { version = "0.5", optional = true, default-features = false }
rflow = { version = "0.1", optional = true, default-features = false }
once_cell = { version = "1.19.0", optional = true }
parking_lot = { version = "0.12.3", optional = true }
parking_lot_rt = { version = "0.12.1", optional = true }
[features]
eapi = ["eva-common", "eva-sdk", "busrt", "tokio", "hostname", "once_cell"]
pipe = ["tokio/process", "tokio/io-util", "tokio/macros", "tokio/rt", "tokio/time"]
rvideo = ["dep:rvideo"]
rflow = ["dep:rflow"]
modbus = ["rmodbus"]
openssl-vendored = ["busrt/openssl-vendored", "eva-common/openssl-vendored"]
metrics = ["dep:metrics", "metrics-exporter-prometheus"]
async = ["dep:parking_lot_rt"]
full = ["eapi", "modbus", "metrics", "pipe", "rvideo", "rflow", "async"]
locking-default = ["dep:parking_lot", "rtsc/parking_lot", "rvideo?/locking-default", "rflow?/locking-default"]
locking-rt = ["dep:parking_lot_rt", "rvideo?/locking-rt", "rflow?/locking-rt"]
locking-rt-safe = ["rvideo?/locking-rt-safe", "rflow?/locking-rt-safe"]
default = ["locking-default"]
[dev-dependencies]
insta = "1.36.1"
log = "0.4.21"
tokio = { version = "=1.36.0", features = ["rt", "macros", "time"] }
tracing = { version = "0.1.40", features = ["log"] }
[[example]]
name = "modbus-master"
path = "examples/modbus-master.rs"
required-features = ["modbus"]
[[example]]
name = "modbus-slave"
path = "examples/modbus-slave.rs"
required-features = ["modbus"]
[[example]]
name = "raw-udp"
path = "examples/raw-udp.rs"
[[example]]
name = "shutdown"
path = "examples/shutdown.rs"
[[example]]
name = "shutdown-custom"
path = "examples/shutdown-custom.rs"
[[example]]
name = "pipe"
path = "examples/pipe.rs"
required-features = ["pipe"]
[[example]]
name = "rflow"
path = "examples/rflow.rs"
required-features = ["rflow"]
[[example]]
name = "eapi"
path = "examples/eapi.rs"
required-features = ["eapi"]
[[example]]
name = "snmp-modbus"
path = "examples/snmp-modbus.rs"
required-features = ["modbus", "snmp"]