# 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.78.0" name = "modbus-mapping" version = "0.3.0" authors = ["Vladimír Vrábeľ "] description = "Modbus register mapping traits and derive macros" readme = "README.md" keywords = [ "modbus", "automation", ] license = "MIT" repository = "https://github.com/vladimirvrabely/modbus-mapping" [[example]] name = "tcp-device" path = "examples/tcp_device.rs" required-features = [ "examples", "simulator", ] [[example]] name = "tcp-client" path = "examples/tcp_client.rs" required-features = ["examples"] [[example]] name = "rtu-device" path = "examples/rtu_device.rs" required-features = [ "examples", "serial", "simulator", ] [[example]] name = "rtu-client" path = "examples/rtu_client.rs" required-features = [ "examples", "serial", ] [[example]] name = "no-macros" path = "examples/no_macros.rs" required-features = ["examples"] [dependencies.async-trait] version = "0.1" [dependencies.futures] version = "0.3" optional = true [dependencies.modbus-mapping-derive] version = "0.3.0" [dependencies.rand_chacha] version = "0.3" optional = true [dependencies.rand_distr] version = "0.4" optional = true [dependencies.tokio] version = "1" features = ["full"] [dependencies.tokio-modbus] version = "0.13" features = ["default"] [dependencies.tokio-serial] version = "5.4" optional = true [dependencies.tokio-stream] version = "0.1" optional = true [features] examples = [ "dep:rand_chacha", "dep:rand_distr", ] serial = ["dep:tokio-serial"] simulator = [ "dep:futures", "dep:tokio-serial", "dep:tokio-stream", "tokio-modbus/rtu-server", "tokio-modbus/tcp-server", ]