-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
46 lines (43 loc) · 1.59 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
[package]
name = "rszurro"
authors = ["Giuseppe Corti <[email protected]>"]
license = "MIT"
version = "0.4.0"
edition = "2021"
[package.metadata.deb]
depends = "$auto, systemd"
extended-description = "multi-purpose, IoT focused daemon for multi-source sensor data integration and distribution across endpoints."
section = "admin"
priority = "optional"
assets = [
["target/release/rszurro", "/usr/bin/rszurro", "755"],
["debian/rszurro.service", "/lib/systemd/system/rszurro.service", "644"],
["config.yaml", "/etc/rszurro/config.yaml", "644"],
]
maintainer-scripts = "debian/scripts"
[dependencies]
tokio = { version = "1.35", features = ["rt", "rt-multi-thread", "macros", "time", "fs", "sync"] }
tokio-modbus = { version = "0.10", default-features = false, features = ["rtu"], optional = true }
tokio-serial = { version = "5.4", optional = true }
tokio-gpiod = { version = "0.2", optional = true }
tokio-icmp-echo = { version = "0.4", optional = true }
futures = "0.3"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.9"
log = "0.4"
env_logger = "0.11"
clap = { version = "4.4", features = ["derive"] }
reqwest = { version = "0.11", features = ["json"], optional = true }
lm-sensors = { version = "0.2", optional = true }
rumqttc = { version = "0.23", optional = true }
[features]
default = ["modbus-rtu", "sysinfo", "lmsensors", "gpio", "homeassistant", "icmp", "mqtt"]
modbus-rtu = ["dep:tokio-modbus","dep:tokio-serial"]
sysinfo = []
lmsensors = ["dep:lm-sensors"]
gpio = ["dep:tokio-gpiod"]
homeassistant = ["dep:reqwest"]
icmp = ["dep:tokio-icmp-echo"]
mqtt = ["dep:rumqttc"]