2022-08-30 16:28:33 +10:00
|
|
|
[package]
|
|
|
|
name = "modbus-mqtt"
|
2022-09-09 17:15:17 +10:00
|
|
|
version = "0.3.0"
|
2022-08-30 16:28:33 +10:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Bo Jeanes <me@bjeanes.com>"]
|
2022-08-30 17:00:56 +10:00
|
|
|
description = "A bridge between Modbus devices and MQTT"
|
|
|
|
keywords = ["modbus", "mqtt", "sungrow"]
|
|
|
|
categories = ["network-programming", "command-line-utilities"]
|
|
|
|
homepage = "https://github.com/bjeanes/modbus-mqtt/tree/main/modbus-mqtt"
|
|
|
|
repository = "https://github.com/bjeanes/modbus-mqtt"
|
|
|
|
license = "MIT"
|
2022-08-30 16:28:33 +10:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
bytes = "1.1.0"
|
|
|
|
clap = { version = "3.2.12", features = ["derive", "env"] }
|
|
|
|
humantime-serde = "1.1.1"
|
|
|
|
itertools = "0.10.3"
|
2022-09-09 17:01:19 +10:00
|
|
|
|
|
|
|
rumqttc = { version = "0.15.0", default-features = true, features = ["url"] } # https://github.com/bytebeamio/rumqtt/issues/446
|
2022-08-30 16:28:33 +10:00
|
|
|
rust_decimal = { version = "1.26.1", features = ["serde-arbitrary-precision", "serde-float", "serde_json", "maths"] }
|
|
|
|
serde = { version = "1.0.139", features = ["serde_derive"] }
|
2022-09-09 17:01:19 +10:00
|
|
|
serde_json = { version = "1.0.82", features = ["raw_value"] }
|
|
|
|
serialport = { version = "4.2.0", optional = true, features = ["serde"] }
|
|
|
|
thiserror = "1.0.33"
|
|
|
|
tokio = { version = "1.20.0", features = ["rt", "rt-multi-thread", "time", "signal"] }
|
|
|
|
tokio-modbus = { version = "0.5.3", default-features = false }
|
|
|
|
tokio-serial = { version = "5.4.3", optional = true }
|
|
|
|
tokio_modbus-winets = { version = "0.1.0", path = "../tokio_modbus-winets", optional = true, default-features = false }
|
2022-08-30 16:28:33 +10:00
|
|
|
tracing = "0.1.36"
|
|
|
|
tracing-subscriber = "0.3.15"
|
2022-09-09 17:01:19 +10:00
|
|
|
url = { version = "2.2.2", features = ["serde"] }
|
2022-08-30 16:28:33 +10:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
pretty_assertions = "1.2.1"
|
2022-09-09 17:01:19 +10:00
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["tcp", "rtu", "winet-s"]
|
|
|
|
tcp = ["tokio-modbus/tcp"]
|
|
|
|
rtu = ["tokio-modbus/rtu", "dep:tokio-serial", "dep:serialport"]
|
|
|
|
winet-s = ["dep:tokio_modbus-winets"]
|
|
|
|
ws = ["rumqttc/websocket"]
|
|
|
|
tls = ["rustls"]
|
|
|
|
rustls = ["rumqttc/use-rustls"]
|