# 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"
rust-version = "1.95"
name = "fennec-modbus"
version = "0.94.0-beta.12"
authors = ["Pavel Perestoronin <eigenein@gmail.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Modular Modbus client implementation"
documentation = "https://docs.rs/fennec-modbus"
readme = "README.md"
keywords = [
    "modbus",
    "modbus-client",
    "hardware",
]
license = "MIT"
repository = "https://github.com/eigenein/fennec"

[features]
cli = [
    "tokio",
    "tokio/rt-multi-thread",
    "tokio/macros",
    "tracing",
    "dep:clap",
    "dep:anyhow",
    "dep:tracing-subscriber",
]
default = ["tokio"]
tokio = [
    "dep:tokio",
    "dep:socket2",
]
tracing = ["dep:tracing"]

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

[[bin]]
name = "fennec-modbus"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1.0.102"
optional = true

[dependencies.bytes]
version = "1.11.1"
default-features = false

[dependencies.clap]
version = "4.6.0"
features = [
    "cargo",
    "derive",
    "env",
    "unicode",
]
optional = true

[dependencies.socket2]
version = "0.6.3"
optional = true

[dependencies.thiserror]
version = "2.0.18"
default-features = false

[dependencies.tokio]
version = "1.51.1"
features = [
    "net",
    "sync",
    "time",
    "io-util",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]
optional = true

[dev-dependencies.anyhow]
version = "1.0.102"

[lints.clippy]
future_not_send = "allow"
missing_errors_doc = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1
