sdm72 0.2.3

SDM72 protocol and commandline tool
Documentation
# 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 = "sdm72"
version = "0.2.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SDM72 protocol and commandline tool"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/acpiccolo/SDM72-Powermeter"

[package.metadata.cargo-machete]
ignored = ["humantime-serde"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bin-dependencies = [
    "safe-client-sync",
    "tokio-rtu-sync",
    "tokio-tcp-sync",
    "serde",
    "clap/derive",
    "dep:anyhow",
    "dep:log",
    "dep:tokio-serial",
    "dep:clap-verbosity-flag",
    "dep:clap-num",
    "dep:flexi_logger",
    "dep:humantime",
    "dep:dialoguer",
    "dep:paho-mqtt",
    "dep:serde_json",
    "dep:serde_yaml",
    "dep:rand",
    "dep:humantime-serde",
]
default = ["bin-dependencies"]
safe-client-async = []
safe-client-sync = []
serde = ["serde/derive"]
tokio-rtu = [
    "tokio/time",
    "tokio-modbus/rtu",
    "dep:tokio-serial",
    "dep:paste",
]
tokio-rtu-sync = [
    "tokio-modbus/rtu-sync",
    "dep:tokio-serial",
    "dep:paste",
]
tokio-tcp = [
    "tokio/time",
    "tokio/net",
    "tokio-modbus/tcp",
    "dep:tokio-serial",
    "dep:paste",
]
tokio-tcp-sync = [
    "tokio/net",
    "tokio-modbus/tcp-sync",
    "dep:tokio-serial",
    "dep:paste",
]

[lib]
name = "sdm72_lib"
path = "src/lib.rs"

[[bin]]
name = "sdm72"
path = "src/main.rs"
required-features = ["bin-dependencies"]

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.clap]
version = "4"
optional = true

[dependencies.clap-num]
version = "1"
optional = true

[dependencies.clap-verbosity-flag]
version = "3"
optional = true

[dependencies.dialoguer]
version = "0.12"
optional = true

[dependencies.flexi_logger]
version = "0.31"
optional = true

[dependencies.humantime]
version = "2"
optional = true

[dependencies.humantime-serde]
version = "1"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.paho-mqtt]
version = "0.14"
optional = true

[dependencies.paste]
version = "1"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.serde]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
optional = true
default-features = false

[dependencies.tokio-modbus]
version = "0.17"
optional = true
default-features = false

[dependencies.tokio-serial]
version = "5"
optional = true

[dev-dependencies.tokio]
version = "1"
features = ["full"]