mbus-serial 0.15.0

Serial RTU and ASCII transport implementations for modbus-rs, including sync, Tokio, and WASM adapters
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 = "2024"
name = "mbus-serial"
version = "0.15.0"
authors = ["Raghava Ch <ch.raghava44@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Serial RTU and ASCII transport implementations for modbus-rs, including sync, Tokio, and WASM adapters"
homepage = "https://github.com/Raghava-Ch"
readme = "README.md"
keywords = [
    "modbus",
    "embedded",
    "no-std",
    "device",
]
categories = [
    "embedded",
    "no-std",
]
license-file = "LICENSE"
repository = "https://github.com/Raghava-Ch/modbus-rs"
resolver = "2"

[features]
async = ["serial-async"]
default = [
    "serial-client",
    "serial-server",
]
logging = ["dep:log"]
serial-async = [
    "dep:tokio",
    "dep:tokio-serial",
    "mbus-core/async",
]
serial-client = ["dep:serialport"]
serial-server = ["dep:serialport"]
serial-wasm = [
    "dep:gloo-timers",
    "dep:js-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
]
serial-wasm-async = [
    "serial-wasm",
    "mbus-core/async",
]
wasm = [
    "serial-wasm",
    "mbus-core/async",
]

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

[dependencies.gloo-timers]
version = "0.3"
features = ["futures"]
optional = true

[dependencies.heapless]
version = "0.9.0"

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.log]
version = "0.4.29"
optional = true
default-features = false

[dependencies.mbus-core]
version = "0.15.0"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.serialport]
version = "4.2.2"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "io-util",
    "time",
]
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-serial]
version = "5"
optional = true
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.futures]
version = "0.3"
features = ["async-await"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-channel]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-util]
version = "0.3"