# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "modbus-mqtt" version = "0.3.0" authors = ["Bo Jeanes "] description = "A bridge between Modbus devices and MQTT" homepage = "https://github.com/bjeanes/modbus-mqtt/tree/main/modbus-mqtt" readme = "README.md" keywords = [ "modbus", "mqtt", "sungrow", ] categories = [ "network-programming", "command-line-utilities", ] license = "MIT" repository = "https://github.com/bjeanes/modbus-mqtt" [dependencies.bytes] version = "1.1.0" [dependencies.clap] version = "4.0.32" features = [ "derive", "env", ] [dependencies.humantime-serde] version = "1.1.1" [dependencies.itertools] version = "0.13.0" [dependencies.rand] version = "0.8.5" [dependencies.rumqttc] version = "0.24.0" features = ["url"] default-features = false [dependencies.rust_decimal] version = "1.26.1" features = [ "serde-arbitrary-precision", "serde-float", "serde_json", "maths", ] [dependencies.serde] version = "1.0.139" features = ["serde_derive"] [dependencies.serde_json] version = "1.0.82" features = ["raw_value"] [dependencies.serialport] version = "4.2.0" features = ["serde"] optional = true [dependencies.thiserror] version = "1.0.33" [dependencies.tokio] version = "1.20.0" features = [ "rt", "rt-multi-thread", "time", "signal", ] [dependencies.tokio-modbus] version = "0.7.1" default-features = false [dependencies.tokio-serial] version = "5.4.3" optional = true [dependencies.tokio_modbus-winets] version = "0.2.1" optional = true default-features = false [dependencies.tracing] version = "0.1.36" [dependencies.tracing-subscriber] version = "0.3.15" [dependencies.url] version = "2.2.2" features = ["serde"] [dev-dependencies.pretty_assertions] version = "1.2.1" [features] default = [ "tcp", "rtu", "winet-s", ] rtu = [ "tokio-modbus/rtu", "dep:tokio-serial", "dep:serialport", ] rustls = ["rumqttc/use-rustls"] tcp = ["tokio-modbus/tcp"] tls = ["rustls"] winet-s = ["dep:tokio_modbus-winets"] ws = ["rumqttc/websocket"]