# 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.65" name = "tokio-modbus" version = "0.15.0" authors = [ "slowtec GmbH ", "Markus Kohlhase ", ] build = false include = [ "/src", "/CHANGELOG.md", "/README.md", "/LICENSES", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Tokio-based Modbus library" homepage = "https://github.com/slowtec/tokio-modbus" readme = "README.md" keywords = [ "fieldbus", "modbus", "hardware", "automation", ] license = "MIT OR Apache-2.0" repository = "https://github.com/slowtec/tokio-modbus" [package.metadata.docs.rs] all-features = true [lib] name = "tokio_modbus" path = "src/lib.rs" [dependencies.async-trait] version = "0.1.77" [dependencies.byteorder] version = "1.5.0" [dependencies.bytes] version = "1.5.0" [dependencies.futures-core] version = "0.3.30" optional = true default-features = false [dependencies.futures-util] version = "0.3.30" optional = true default-features = false [dependencies.log] version = "0.4.20" [dependencies.smallvec] version = "1.13.1" optional = true default-features = false [dependencies.socket2] version = "0.5.5" optional = true default-features = false [dependencies.thiserror] version = "1.0.58" [dependencies.tokio] version = "1.35.1" features = ["io-util"] default-features = false [dependencies.tokio-serial] version = "5.4.4" optional = true default-features = false [dependencies.tokio-util] version = "0.7.10" features = ["codec"] optional = true default-features = false [dev-dependencies.anyhow] version = "1.0.86" [dev-dependencies.env_logger] version = "0.11.5" [dev-dependencies.futures] version = "0.3.30" [dev-dependencies.pem] version = "3.0.4" [dev-dependencies.pkcs8] version = "0.10.2" features = [ "encryption", "pem", "std", ] [dev-dependencies.pki-types] version = "1" package = "rustls-pki-types" [dev-dependencies.rustls] version = "0.23.12" features = ["std"] default-features = false [dev-dependencies.rustls-pemfile] version = "2.1.2" [dev-dependencies.tokio] version = "1.35.1" features = [ "macros", "rt-multi-thread", "time", ] default-features = false [dev-dependencies.tokio-rustls] version = "0.26.0" default-features = false [dev-dependencies.tokio-serial] version = "5.4.4" default-features = false [features] default = [ "rtu", "tcp", ] rtu = [ "dep:futures-core", "futures-util/sink", "dep:smallvec", "dep:tokio-util", ] rtu-over-tcp-server = [ "rtu", "tcp-server", ] rtu-server = [ "rtu", "server", "tokio/macros", "dep:tokio-serial", ] rtu-sync = [ "rtu", "sync", "dep:tokio-serial", ] server = [] sync = [ "dep:futures-core", "futures-util/sink", "tokio/time", "tokio/rt", ] tcp = [ "dep:futures-core", "futures-util/sink", "tokio/net", "dep:tokio-util", ] tcp-server = [ "tcp", "server", "socket2/all", "tokio/macros", "tokio/rt-multi-thread", ] tcp-sync = [ "tcp", "sync", ] [badges.maintenance] status = "actively-developed"