# 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"
rust-version = "1.94"
name = "rodbus"
version = "1.5.0"
authors = ["Step Function I/O LLC <info@stepfunc.io>>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance async implementation of the Modbus protocol using tokio"
homepage = "https://stepfunc.io/products/libraries/modbus/"
readme = "README.md"
keywords = [
    "dnp3",
    "ics",
    "scada",
    "security",
]
categories = ["network-programming"]
license-file = "LICENSE.txt"
repository = "https://github.com/stepfunc/rodbus"

[features]
default = [
    "tls",
    "serial",
]
enable-tls = [
    "rx509",
    "tokio-rustls",
]
ffi = []
serial = [
    "crc",
    "tokio-serial",
]
serialization = ["serde"]
tls = [
    "enable-tls",
    "sfio-rustls-config/crypto-ring",
]
tls-aws-lc = [
    "enable-tls",
    "sfio-rustls-config/crypto-aws-lc",
]

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

[dependencies.crc]
version = "3"
optional = true

[dependencies.rx509]
version = "0.2"
optional = true

[dependencies.scursor]
version = "0.5.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.sfio-rustls-config]
version = "0.4"
optional = true
default-features = false

[dependencies.tokio]
version = "1.37"
features = [
    "net",
    "sync",
    "io-util",
    "io-std",
    "time",
    "rt",
    "rt-multi-thread",
    "macros",
]

[dependencies.tokio-rustls]
version = "0.26"
features = ["tls12"]
optional = true
default-features = false

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

[dependencies.tracing]
version = "0.1"

[dev-dependencies.sfio-tokio-mock-io]
version = "0.2"

[dev-dependencies.tokio-test]
version = "0.4"

[lints.rust]
missing_copy_implementations = "deny"
missing_docs = "deny"
non_ascii_idents = "deny"
trivial_casts = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_crate_dependencies = "deny"

[lints.rust.unused]
level = "deny"
priority = -1
