tasmor_lib 0.6.0

Rust library to control Tasmota devices via MQTT and HTTP
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"
rust-version = "1.92.0"
name = "tasmor_lib"
version = "0.6.0"
build = false
exclude = [
    "CLAUDE.md",
    "GEMINI.md",
    "AGENTS.md",
    "TODO.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library to control Tasmota devices via MQTT and HTTP"
homepage = "https://codeberg.org/Bawycle/tasmor_lib"
documentation = "https://docs.rs/tasmor_lib"
readme = "README.md"
keywords = [
    "tasmota",
    "mqtt",
    "home-automation",
    "iot",
    "smart-home",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MPL-2.0"
repository = "https://codeberg.org/Bawycle/tasmor_lib.git"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "http",
    "mqtt",
]
http = ["dep:reqwest"]
mqtt = ["dep:rumqttc"]

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

[[example]]
name = "bulb_test"
path = "examples/bulb_test.rs"

[[example]]
name = "discovery_test"
path = "examples/discovery_test.rs"

[[example]]
name = "energy_test"
path = "examples/energy_test.rs"

[[example]]
name = "routine_test"
path = "examples/routine_test.rs"

[[example]]
name = "uptime"
path = "examples/uptime.rs"

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

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

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "serde",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.rumqttc]
version = "0.25"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.urlencoding]
version = "2"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "test-util",
]

[dev-dependencies.wiremock]
version = "0.6"

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

[lints.rust]
unsafe_code = "forbid"