# 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-server"
version = "0.13.0"
authors = ["Raghava Ch <ch.raghava44@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Modbus server runtime providing request dispatch and response handling"
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]
coils = ["mbus-core/coils"]
default = [
    "coils",
    "holding-registers",
    "input-registers",
    "discrete-inputs",
    "fifo",
    "file-record",
    "diagnostics",
]
diagnostics = ["mbus-core/diagnostics"]
diagnostics-stats = ["diagnostics"]
discrete-inputs = ["mbus-core/discrete-inputs"]
display = []
fifo = ["mbus-core/fifo"]
file-record = ["mbus-core/file-record"]
holding-registers = ["mbus-core/holding-registers"]
input-registers = ["mbus-core/input-registers"]
logging = [
    "dep:log",
    "mbus-core/logging",
    "mbus-core/defmt-format",
]
registers = [
    "holding-registers",
    "input-registers",
]
serial-ascii = ["mbus-core/serial-ascii"]
traffic = []

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

[[example]]
name = "broadcast"
path = "examples/broadcast.rs"
required-features = [
    "coils",
    "holding-registers",
]

[[example]]
name = "device_id"
path = "examples/device_id.rs"
required-features = ["diagnostics"]

[[example]]
name = "diagnostics"
path = "examples/diagnostics.rs"
required-features = ["diagnostics"]

[[example]]
name = "discrete_inputs"
path = "examples/discrete_inputs.rs"
required-features = ["discrete-inputs"]

[[example]]
name = "discrete_inputs_read"
path = "examples/discrete_inputs_read.rs"
required-features = ["discrete-inputs"]

[[example]]
name = "fifo"
path = "examples/fifo.rs"
required-features = ["fifo"]

[[example]]
name = "file_record"
path = "examples/file_record.rs"
required-features = ["file-record"]

[[example]]
name = "full_server"
path = "examples/full_server.rs"
required-features = [
    "coils",
    "discrete-inputs",
    "holding-registers",
    "input-registers",
    "fifo",
    "file-record",
    "diagnostics",
]

[[example]]
name = "holding_registers_read"
path = "examples/holding_registers_read.rs"
required-features = ["holding-registers"]

[[example]]
name = "read_write_registers"
path = "examples/read_write_registers.rs"
required-features = ["holding-registers"]

[[example]]
name = "write_hooks"
path = "examples/write_hooks.rs"
required-features = [
    "coils",
    "holding-registers",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.heapless]
version = "0.9.0"

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

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

[dependencies.mbus-macros]
version = "0.13.0"

[build-dependencies.serde]
version = "1"
features = ["derive"]

[build-dependencies.toml]
version = "0.8"
