# 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 = "2024"
name = "epics-modbus-rs"
version = "0.20.1"
authors = ["Sang Woo Kim <sngwkim915@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust port of EPICS modbus — Modbus TCP/RTU/ASCII driver for epics-rs"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/epics-rs/epics-rs"

[features]
default = []
ioc = [
    "dep:epics-base-rs",
    "dep:epics-ca-rs",
    "asyn-rs/epics",
]

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

[[test]]
name = "tcp_loopback"
path = "tests/tcp_loopback.rs"

[dependencies.asyn-rs]
version = "0.20.0"

[dependencies.epics-base-rs]
version = "0.20.0"
optional = true

[dependencies.epics-ca-rs]
version = "0.20.0"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "rt",
]

[dependencies.tracing]
version = "0.1"

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